From 45ac7ee6cffac626cb585634829ba69845e54e7d Mon Sep 17 00:00:00 2001 From: "roomote[bot]" <219738659+roomote[bot]@users.noreply.github.com> Date: Fri, 15 Aug 2025 23:15:55 -0400 Subject: [PATCH] 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 Co-authored-by: daniel-lxs --- packages/types/src/providers/openai.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/types/src/providers/openai.ts b/packages/types/src/providers/openai.ts index ff79824984..6409e67586 100644 --- a/packages/types/src/providers/openai.ts +++ b/packages/types/src/providers/openai.ts @@ -6,6 +6,18 @@ export type OpenAiNativeModelId = keyof typeof openAiNativeModels export const openAiNativeDefaultModelId: OpenAiNativeModelId = "gpt-5-2025-08-07" export const openAiNativeModels = { + "gpt-5-chat-latest": { + maxTokens: 128000, + contextWindow: 400000, + supportsImages: true, + supportsPromptCache: true, + supportsReasoningEffort: false, + inputPrice: 1.25, + outputPrice: 10.0, + cacheReadsPrice: 0.13, + description: "GPT-5 Chat Latest: Optimized for conversational AI and non-reasoning tasks", + supportsVerbosity: true, + }, "gpt-5-2025-08-07": { maxTokens: 128000, contextWindow: 400000,