mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
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 <roomote@roocode.com> Co-authored-by: daniel-lxs <ricciodaniel98@gmail.com>
This commit is contained in:
parent
438c8e377a
commit
45ac7ee6cf
1 changed files with 12 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue