From 6cca6b8cb99d917e676fab213328c2fc829c5a81 Mon Sep 17 00:00:00 2001 From: Bob Du Date: Fri, 5 Dec 2025 21:19:24 +0800 Subject: [PATCH] feat: support gpt-5.1-chat-latest model Signed-off-by: Bob Du --- service/src/chatgpt/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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,