Add gpt-4.5-preview

This commit is contained in:
Matt Rubens 2025-02-27 15:18:54 -05:00
parent 22ec3b21fe
commit e7769cea57
3 changed files with 15 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
"roo-cline": patch
---
Add gpt-4.5-preview

View file

@ -357,7 +357,7 @@ describe("OpenAiNativeHandler", () => {
const modelInfo = handler.getModel()
expect(modelInfo.id).toBe(mockOptions.apiModelId)
expect(modelInfo.info).toBeDefined()
expect(modelInfo.info.maxTokens).toBe(4096)
expect(modelInfo.info.maxTokens).toBe(16384)
expect(modelInfo.info.contextWindow).toBe(128_000)
})

View file

@ -678,8 +678,16 @@ export const openAiNativeModels = {
inputPrice: 1.1,
outputPrice: 4.4,
},
"gpt-4.5-preview": {
maxTokens: 16_384,
contextWindow: 128_000,
supportsImages: true,
supportsPromptCache: false,
inputPrice: 75,
outputPrice: 150,
},
"gpt-4o": {
maxTokens: 4_096,
maxTokens: 16_384,
contextWindow: 128_000,
supportsImages: true,
supportsPromptCache: false,