Skip to content

Commit a594fad

Browse files
authored
feat: support gpt-5.1-chat-latest model (#662)
Signed-off-by: Bob Du <[email protected]>
1 parent 795afdf commit a594fad

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

service/src/chatgpt/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,12 @@ search result: <search_result>${searchResultContent}</search_result>`,
258258
effort: model.startsWith('gpt-5.') ? 'none' : 'minimal',
259259
}
260260
}
261+
262+
// This model does not support setting reasoning effort, so set reasoning to empty object
263+
if (model === 'gpt-5.1-chat-latest') {
264+
reasoning = {}
265+
}
266+
261267
const stream = await openai.responses.create(
262268
{
263269
model,

0 commit comments

Comments
 (0)