fix(llms): omitting both reasoning_effort and temperature for chat-latest

This commit is contained in:
Simon
2026-06-26 00:12:34 +08:00
parent 57f64347ac
commit 2b679d85cb
+3 -1
View File
@@ -81,7 +81,9 @@ export function modelPatch(body: Record<string, any>) {
// *-chat-latest models don't support reasoning_effort — skip patches that set it
if (modelName.includes('chat-latest')) {
debug('Skipping reasoning_effort patch for chat-latest model')
debug('Omitting reasoning_effort and temperature for chat-latest')
delete body.reasoning_effort
delete body.temperature
} else if (modelName.startsWith('gpt-52')) {
debug('Applying GPT-52 patch: disable reasoning')
body.reasoning_effort = 'none'