Skip to content

Commit 45299a9

Browse files
Fix the supportsPromptCache value for OpenAI models (#1923)
Reference: - https://platform.openai.com/docs/models
1 parent 0bc4f30 commit 45299a9

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

.changeset/mighty-bikes-applaud.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+
Fix the supportsPromptCache value for OpenAI models

src/shared/api.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ export const openAiNativeModels = {
855855
maxTokens: 100_000,
856856
contextWindow: 200_000,
857857
supportsImages: false,
858-
supportsPromptCache: false,
858+
supportsPromptCache: true,
859859
inputPrice: 1.1,
860860
outputPrice: 4.4,
861861
reasoningEffort: "medium",
@@ -864,7 +864,7 @@ export const openAiNativeModels = {
864864
maxTokens: 100_000,
865865
contextWindow: 200_000,
866866
supportsImages: false,
867-
supportsPromptCache: false,
867+
supportsPromptCache: true,
868868
inputPrice: 1.1,
869869
outputPrice: 4.4,
870870
reasoningEffort: "high",
@@ -873,7 +873,7 @@ export const openAiNativeModels = {
873873
maxTokens: 100_000,
874874
contextWindow: 200_000,
875875
supportsImages: false,
876-
supportsPromptCache: false,
876+
supportsPromptCache: true,
877877
inputPrice: 1.1,
878878
outputPrice: 4.4,
879879
reasoningEffort: "low",
@@ -882,47 +882,47 @@ export const openAiNativeModels = {
882882
maxTokens: 100_000,
883883
contextWindow: 200_000,
884884
supportsImages: true,
885-
supportsPromptCache: false,
885+
supportsPromptCache: true,
886886
inputPrice: 15,
887887
outputPrice: 60,
888888
},
889889
"o1-preview": {
890890
maxTokens: 32_768,
891891
contextWindow: 128_000,
892892
supportsImages: true,
893-
supportsPromptCache: false,
893+
supportsPromptCache: true,
894894
inputPrice: 15,
895895
outputPrice: 60,
896896
},
897897
"o1-mini": {
898898
maxTokens: 65_536,
899899
contextWindow: 128_000,
900900
supportsImages: true,
901-
supportsPromptCache: false,
901+
supportsPromptCache: true,
902902
inputPrice: 1.1,
903903
outputPrice: 4.4,
904904
},
905905
"gpt-4.5-preview": {
906906
maxTokens: 16_384,
907907
contextWindow: 128_000,
908908
supportsImages: true,
909-
supportsPromptCache: false,
909+
supportsPromptCache: true,
910910
inputPrice: 75,
911911
outputPrice: 150,
912912
},
913913
"gpt-4o": {
914914
maxTokens: 16_384,
915915
contextWindow: 128_000,
916916
supportsImages: true,
917-
supportsPromptCache: false,
917+
supportsPromptCache: true,
918918
inputPrice: 2.5,
919919
outputPrice: 10,
920920
},
921921
"gpt-4o-mini": {
922922
maxTokens: 16_384,
923923
contextWindow: 128_000,
924924
supportsImages: true,
925-
supportsPromptCache: false,
925+
supportsPromptCache: true,
926926
inputPrice: 0.15,
927927
outputPrice: 0.6,
928928
},

0 commit comments

Comments
 (0)