diff --git a/service/src/chatgpt/index.ts b/service/src/chatgpt/index.ts index bb7307f3..fd8b0493 100644 --- a/service/src/chatgpt/index.ts +++ b/service/src/chatgpt/index.ts @@ -258,6 +258,12 @@ search result: ${searchResultContent}`, effort: model.startsWith('gpt-5.') ? 'none' : 'minimal', } } + + // This model does not support setting reasoning effort, so set reasoning to empty object + if (model === 'gpt-5.1-chat-latest') { + reasoning = {} + } + const stream = await openai.responses.create( { model,