fix(llms): omitting both reasoning_effort and temperature for chat-latest
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user