Skip to content

Commit 203b1ad

Browse files
authored
Merge pull request #1250 from RooVetGit/gpt_4_5_preview
Add gpt-4.5-preview
2 parents 22ec3b2 + e7769ce commit 203b1ad

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.changeset/flat-avocados-carry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
Add gpt-4.5-preview

src/api/providers/__tests__/openai-native.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ describe("OpenAiNativeHandler", () => {
357357
const modelInfo = handler.getModel()
358358
expect(modelInfo.id).toBe(mockOptions.apiModelId)
359359
expect(modelInfo.info).toBeDefined()
360-
expect(modelInfo.info.maxTokens).toBe(4096)
360+
expect(modelInfo.info.maxTokens).toBe(16384)
361361
expect(modelInfo.info.contextWindow).toBe(128_000)
362362
})
363363

src/shared/api.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,8 +678,16 @@ export const openAiNativeModels = {
678678
inputPrice: 1.1,
679679
outputPrice: 4.4,
680680
},
681+
"gpt-4.5-preview": {
682+
maxTokens: 16_384,
683+
contextWindow: 128_000,
684+
supportsImages: true,
685+
supportsPromptCache: false,
686+
inputPrice: 75,
687+
outputPrice: 150,
688+
},
681689
"gpt-4o": {
682-
maxTokens: 4_096,
690+
maxTokens: 16_384,
683691
contextWindow: 128_000,
684692
supportsImages: true,
685693
supportsPromptCache: false,

0 commit comments

Comments
 (0)