fix(core): lower OpenAI text verbosity
This commit is contained in:
parent
f4afb2c0a5
commit
25c6abc31a
2 changed files with 21 additions and 3 deletions
|
|
@ -40,7 +40,14 @@ const openai: Lowerer = {
|
|||
settings: omit(options, ["apiKey", "baseURL", "organization", "project", "headers", "body"]),
|
||||
}
|
||||
},
|
||||
request: snake,
|
||||
request(options) {
|
||||
const result = snake(options)
|
||||
if (options.textVerbosity !== undefined) {
|
||||
result.text = { ...(isRecord(result.text) ? result.text : {}), verbosity: options.textVerbosity }
|
||||
delete result.text_verbosity
|
||||
}
|
||||
return result
|
||||
},
|
||||
}
|
||||
|
||||
const anthropic: Lowerer = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue