Skip to content

Commit

Permalink
去除response_format必选
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinlic committed May 16, 2024
1 parent b96056e commit e5a3893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/routes/audio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default {
"/transcriptions": async (request: Request) => {
request
.validate("body.model", _.isString)
.validate("body.response_format", _.isString)
.validate("body.response_format", v => _.isUndefined(v) || _.isString(v))
.validate("headers.authorization", _.isString);
// token切分
const tokens = core.tokenSplit(request.headers.authorization);
Expand Down

0 comments on commit e5a3893

Please sign in to comment.