fix(core): lower OpenAI text verbosity

This commit is contained in:
Dax Raad 2026-06-24 19:32:59 -04:00
commit 25c6abc31a
2 changed files with 21 additions and 3 deletions

View file

@ -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 = {