Skip to content

Commit 45ac7ee

Browse files
roomote[bot]roomote-agentdaniel-lxs
authored
feat: add support for OpenAI gpt-5-chat-latest model (#7058)
* feat: add support for OpenAI gpt-5-chat-latest model - Added gpt-5-chat-latest model configuration to openAiNativeModels - Updated OpenAiNativeHandler to recognize gpt-5-chat-latest as a Responses API model - Added comprehensive tests for the new model - Model is optimized for conversational AI and non-reasoning tasks Fixes #7057 * fix: remove redundant condition and unnecessary test file - Remove redundant gpt-5-chat-latest check in isResponsesApiModel since startsWith('gpt-5') already covers it - Remove unnecessary dedicated test file for gpt-5-chat-latest --------- Co-authored-by: Roo Code <[email protected]> Co-authored-by: daniel-lxs <[email protected]>
1 parent 438c8e3 commit 45ac7ee

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/types/src/providers/openai.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ export type OpenAiNativeModelId = keyof typeof openAiNativeModels
66
export const openAiNativeDefaultModelId: OpenAiNativeModelId = "gpt-5-2025-08-07"
77

88
export const openAiNativeModels = {
9+
"gpt-5-chat-latest": {
10+
maxTokens: 128000,
11+
contextWindow: 400000,
12+
supportsImages: true,
13+
supportsPromptCache: true,
14+
supportsReasoningEffort: false,
15+
inputPrice: 1.25,
16+
outputPrice: 10.0,
17+
cacheReadsPrice: 0.13,
18+
description: "GPT-5 Chat Latest: Optimized for conversational AI and non-reasoning tasks",
19+
supportsVerbosity: true,
20+
},
921
"gpt-5-2025-08-07": {
1022
maxTokens: 128000,
1123
contextWindow: 400000,

0 commit comments

Comments
 (0)