Skip to content

Commit 1a015e1

Browse files
committed
Remove the usd price because SAP calculate based on Capacity Unit. Also update the document Url.
1 parent b25494d commit 1a015e1

File tree

2 files changed

+90
-115
lines changed

2 files changed

+90
-115
lines changed
Lines changed: 87 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -1,187 +1,160 @@
11
import type { ModelInfo } from "../model.js"
22

33
export type SapAiCoreModelId = keyof typeof sapAiCoreModels
4-
54
export const sapAiCoreDefaultModelId: SapAiCoreModelId = "anthropic--claude-3.5-sonnet"
6-
5+
const sapAiCoreModelDescription = "Pricing is calculated using SAP's Capacity Units rather than direct USD pricing."
76
export const sapAiCoreModels = {
8-
// Anthropic models
97
"anthropic--claude-4-sonnet": {
108
maxTokens: 8192,
11-
contextWindow: 2000000,
9+
contextWindow: 200_000,
1210
supportsImages: true,
1311
supportsPromptCache: true,
14-
inputPrice: 5.0,
15-
outputPrice: 15.0,
16-
cacheReadsPrice: 0.5,
17-
cacheWritesPrice: 7.5,
12+
description: sapAiCoreModelDescription,
1813
},
1914
"anthropic--claude-4-opus": {
2015
maxTokens: 8192,
21-
contextWindow: 2000000,
16+
contextWindow: 200_000,
2217
supportsImages: true,
2318
supportsPromptCache: true,
24-
inputPrice: 20.0,
25-
outputPrice: 60.0,
26-
cacheReadsPrice: 2.0,
27-
cacheWritesPrice: 30.0,
19+
description: sapAiCoreModelDescription,
2820
},
2921
"anthropic--claude-3.7-sonnet": {
30-
maxTokens: 8192,
31-
contextWindow: 1000000,
22+
maxTokens: 64_000,
23+
contextWindow: 200_000,
3224
supportsImages: true,
3325
supportsPromptCache: true,
34-
inputPrice: 3.0,
35-
outputPrice: 15.0,
36-
cacheReadsPrice: 0.3,
37-
cacheWritesPrice: 4.5,
26+
description: sapAiCoreModelDescription,
3827
},
3928
"anthropic--claude-3.5-sonnet": {
4029
maxTokens: 8192,
41-
contextWindow: 200000,
30+
contextWindow: 200_000,
4231
supportsImages: true,
4332
supportsPromptCache: false,
44-
inputPrice: 3.0,
45-
outputPrice: 15.0,
33+
description: sapAiCoreModelDescription,
4634
},
4735
"anthropic--claude-3-sonnet": {
4836
maxTokens: 4096,
49-
contextWindow: 200000,
37+
contextWindow: 200_000,
5038
supportsImages: true,
5139
supportsPromptCache: false,
52-
inputPrice: 3.0,
53-
outputPrice: 15.0,
40+
description: sapAiCoreModelDescription,
5441
},
5542
"anthropic--claude-3-haiku": {
5643
maxTokens: 4096,
57-
contextWindow: 200000,
44+
contextWindow: 200_000,
5845
supportsImages: true,
5946
supportsPromptCache: false,
60-
inputPrice: 0.25,
61-
outputPrice: 1.25,
47+
description: sapAiCoreModelDescription,
6248
},
6349
"anthropic--claude-3-opus": {
6450
maxTokens: 4096,
65-
contextWindow: 200000,
51+
contextWindow: 200_000,
6652
supportsImages: true,
6753
supportsPromptCache: false,
68-
inputPrice: 15.0,
69-
outputPrice: 75.0,
54+
description: sapAiCoreModelDescription,
7055
},
71-
// OpenAI models
72-
"gpt-4o": {
73-
maxTokens: 16384,
74-
contextWindow: 128000,
56+
"gemini-2.5-pro": {
57+
maxTokens: 65536,
58+
contextWindow: 1_048_576,
7559
supportsImages: true,
76-
supportsPromptCache: false,
77-
inputPrice: 5.0,
78-
outputPrice: 15.0,
60+
supportsPromptCache: true,
61+
thinkingConfig: {
62+
maxBudget: 32767,
63+
},
64+
description: sapAiCoreModelDescription,
65+
},
66+
"gemini-2.5-flash": {
67+
maxTokens: 65536,
68+
contextWindow: 1_048_576,
69+
supportsImages: true,
70+
supportsPromptCache: true,
71+
thinkingConfig: {
72+
maxBudget: 24576,
73+
},
74+
description: sapAiCoreModelDescription,
7975
},
8076
"gpt-4": {
81-
maxTokens: 8192,
82-
contextWindow: 8192,
83-
supportsImages: false,
77+
maxTokens: 4096,
78+
contextWindow: 200_000,
79+
supportsImages: true,
8480
supportsPromptCache: false,
85-
inputPrice: 30.0,
86-
outputPrice: 60.0,
81+
description: sapAiCoreModelDescription,
8782
},
88-
"gpt-4o-mini": {
89-
maxTokens: 16384,
90-
contextWindow: 128000,
83+
"gpt-4o": {
84+
maxTokens: 4096,
85+
contextWindow: 200_000,
9186
supportsImages: true,
9287
supportsPromptCache: false,
93-
inputPrice: 0.15,
94-
outputPrice: 0.6,
88+
description: sapAiCoreModelDescription,
9589
},
96-
o1: {
97-
maxTokens: 100000,
98-
contextWindow: 200000,
99-
supportsImages: false,
90+
"gpt-4o-mini": {
91+
maxTokens: 4096,
92+
contextWindow: 200_000,
93+
supportsImages: true,
10094
supportsPromptCache: false,
101-
inputPrice: 15.0,
102-
outputPrice: 60.0,
95+
description: sapAiCoreModelDescription,
10396
},
10497
"gpt-4.1": {
105-
maxTokens: 32768,
106-
contextWindow: 128000,
98+
maxTokens: 32_768,
99+
contextWindow: 1_047_576,
107100
supportsImages: true,
108-
supportsPromptCache: false,
109-
inputPrice: 5.0,
110-
outputPrice: 15.0,
101+
supportsPromptCache: true,
102+
description: sapAiCoreModelDescription,
111103
},
112104
"gpt-4.1-nano": {
113-
maxTokens: 16384,
114-
contextWindow: 128000,
105+
maxTokens: 32_768,
106+
contextWindow: 1_047_576,
115107
supportsImages: true,
116-
supportsPromptCache: false,
117-
inputPrice: 0.15,
118-
outputPrice: 0.6,
108+
supportsPromptCache: true,
109+
description: sapAiCoreModelDescription,
119110
},
120111
"gpt-5": {
121-
maxTokens: 32768,
122-
contextWindow: 256000,
112+
maxTokens: 128_000,
113+
contextWindow: 272_000,
123114
supportsImages: true,
124-
supportsPromptCache: false,
125-
inputPrice: 10.0,
126-
outputPrice: 30.0,
115+
supportsPromptCache: true,
116+
description: sapAiCoreModelDescription,
127117
},
128118
"gpt-5-nano": {
129-
maxTokens: 16384,
130-
contextWindow: 256000,
119+
maxTokens: 128_000,
120+
contextWindow: 272_000,
131121
supportsImages: true,
132-
supportsPromptCache: false,
133-
inputPrice: 0.5,
134-
outputPrice: 1.5,
122+
supportsPromptCache: true,
123+
description: sapAiCoreModelDescription,
135124
},
136125
"gpt-5-mini": {
137-
maxTokens: 16384,
138-
contextWindow: 256000,
126+
maxTokens: 128_000,
127+
contextWindow: 272_000,
139128
supportsImages: true,
140-
supportsPromptCache: false,
141-
inputPrice: 1.0,
142-
outputPrice: 3.0,
129+
supportsPromptCache: true,
130+
description: sapAiCoreModelDescription,
143131
},
144-
"o3-mini": {
145-
maxTokens: 100000,
146-
contextWindow: 200000,
147-
supportsImages: false,
132+
o1: {
133+
maxTokens: 4096,
134+
contextWindow: 200_000,
135+
supportsImages: true,
148136
supportsPromptCache: false,
149-
inputPrice: 1.0,
150-
outputPrice: 4.0,
137+
description: sapAiCoreModelDescription,
151138
},
152139
o3: {
153-
maxTokens: 100000,
154-
contextWindow: 200000,
155-
supportsImages: false,
156-
supportsPromptCache: false,
157-
inputPrice: 60.0,
158-
outputPrice: 240.0,
159-
},
160-
"o4-mini": {
161-
maxTokens: 100000,
162-
contextWindow: 200000,
163-
supportsImages: false,
164-
supportsPromptCache: false,
165-
inputPrice: 2.0,
166-
outputPrice: 8.0,
140+
maxTokens: 100_000,
141+
contextWindow: 200_000,
142+
supportsImages: true,
143+
supportsPromptCache: true,
144+
description: sapAiCoreModelDescription,
167145
},
168-
// Gemini models
169-
"gemini-2.5-flash": {
170-
maxTokens: 8192,
171-
contextWindow: 1000000,
146+
"o3-mini": {
147+
maxTokens: 4096,
148+
contextWindow: 200_000,
172149
supportsImages: true,
173150
supportsPromptCache: false,
174-
inputPrice: 0.5,
175-
outputPrice: 1.5,
176-
maxThinkingTokens: 32768,
151+
description: sapAiCoreModelDescription,
177152
},
178-
"gemini-2.5-pro": {
179-
maxTokens: 8192,
180-
contextWindow: 2000000,
153+
"o4-mini": {
154+
maxTokens: 100_000,
155+
contextWindow: 200_000,
181156
supportsImages: true,
182-
supportsPromptCache: false,
183-
inputPrice: 2.5,
184-
outputPrice: 10.0,
185-
maxThinkingTokens: 65536,
157+
supportsPromptCache: true,
158+
description: sapAiCoreModelDescription,
186159
},
187-
} satisfies Record<string, ModelInfo>
160+
} as const satisfies Record<string, ModelInfo>

webview-ui/src/components/settings/providers/SapAiCore.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ export const SapAiCore = ({ apiConfiguration, setApiConfigurationField }: SapAiC
125125
{t("settings:providers.apiKeyStorageNotice")}
126126
</div>
127127

128-
<VSCodeButtonLink href="https://docs.sap.com/docs/sap-ai-core" className="inline-flex items-center gap-1">
128+
<VSCodeButtonLink
129+
href="https://help.sap.com/docs/sap-ai-core/sap-ai-core-service-guide/what-is-sap-ai-core"
130+
className="inline-flex items-center gap-1">
129131
{t("settings:providers.sapAiCoreLearnMore")}
130132
</VSCodeButtonLink>
131133
</>

0 commit comments

Comments
 (0)