|
1 | 1 | import type { ModelInfo } from "../model.js" |
2 | 2 |
|
3 | 3 | export type SapAiCoreModelId = keyof typeof sapAiCoreModels |
4 | | - |
5 | 4 | 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." |
7 | 6 | export const sapAiCoreModels = { |
8 | | - // Anthropic models |
9 | 7 | "anthropic--claude-4-sonnet": { |
10 | 8 | maxTokens: 8192, |
11 | | - contextWindow: 2000000, |
| 9 | + contextWindow: 200_000, |
12 | 10 | supportsImages: true, |
13 | 11 | supportsPromptCache: true, |
14 | | - inputPrice: 5.0, |
15 | | - outputPrice: 15.0, |
16 | | - cacheReadsPrice: 0.5, |
17 | | - cacheWritesPrice: 7.5, |
| 12 | + description: sapAiCoreModelDescription, |
18 | 13 | }, |
19 | 14 | "anthropic--claude-4-opus": { |
20 | 15 | maxTokens: 8192, |
21 | | - contextWindow: 2000000, |
| 16 | + contextWindow: 200_000, |
22 | 17 | supportsImages: true, |
23 | 18 | supportsPromptCache: true, |
24 | | - inputPrice: 20.0, |
25 | | - outputPrice: 60.0, |
26 | | - cacheReadsPrice: 2.0, |
27 | | - cacheWritesPrice: 30.0, |
| 19 | + description: sapAiCoreModelDescription, |
28 | 20 | }, |
29 | 21 | "anthropic--claude-3.7-sonnet": { |
30 | | - maxTokens: 8192, |
31 | | - contextWindow: 1000000, |
| 22 | + maxTokens: 64_000, |
| 23 | + contextWindow: 200_000, |
32 | 24 | supportsImages: true, |
33 | 25 | supportsPromptCache: true, |
34 | | - inputPrice: 3.0, |
35 | | - outputPrice: 15.0, |
36 | | - cacheReadsPrice: 0.3, |
37 | | - cacheWritesPrice: 4.5, |
| 26 | + description: sapAiCoreModelDescription, |
38 | 27 | }, |
39 | 28 | "anthropic--claude-3.5-sonnet": { |
40 | 29 | maxTokens: 8192, |
41 | | - contextWindow: 200000, |
| 30 | + contextWindow: 200_000, |
42 | 31 | supportsImages: true, |
43 | 32 | supportsPromptCache: false, |
44 | | - inputPrice: 3.0, |
45 | | - outputPrice: 15.0, |
| 33 | + description: sapAiCoreModelDescription, |
46 | 34 | }, |
47 | 35 | "anthropic--claude-3-sonnet": { |
48 | 36 | maxTokens: 4096, |
49 | | - contextWindow: 200000, |
| 37 | + contextWindow: 200_000, |
50 | 38 | supportsImages: true, |
51 | 39 | supportsPromptCache: false, |
52 | | - inputPrice: 3.0, |
53 | | - outputPrice: 15.0, |
| 40 | + description: sapAiCoreModelDescription, |
54 | 41 | }, |
55 | 42 | "anthropic--claude-3-haiku": { |
56 | 43 | maxTokens: 4096, |
57 | | - contextWindow: 200000, |
| 44 | + contextWindow: 200_000, |
58 | 45 | supportsImages: true, |
59 | 46 | supportsPromptCache: false, |
60 | | - inputPrice: 0.25, |
61 | | - outputPrice: 1.25, |
| 47 | + description: sapAiCoreModelDescription, |
62 | 48 | }, |
63 | 49 | "anthropic--claude-3-opus": { |
64 | 50 | maxTokens: 4096, |
65 | | - contextWindow: 200000, |
| 51 | + contextWindow: 200_000, |
66 | 52 | supportsImages: true, |
67 | 53 | supportsPromptCache: false, |
68 | | - inputPrice: 15.0, |
69 | | - outputPrice: 75.0, |
| 54 | + description: sapAiCoreModelDescription, |
70 | 55 | }, |
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, |
75 | 59 | 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, |
79 | 75 | }, |
80 | 76 | "gpt-4": { |
81 | | - maxTokens: 8192, |
82 | | - contextWindow: 8192, |
83 | | - supportsImages: false, |
| 77 | + maxTokens: 4096, |
| 78 | + contextWindow: 200_000, |
| 79 | + supportsImages: true, |
84 | 80 | supportsPromptCache: false, |
85 | | - inputPrice: 30.0, |
86 | | - outputPrice: 60.0, |
| 81 | + description: sapAiCoreModelDescription, |
87 | 82 | }, |
88 | | - "gpt-4o-mini": { |
89 | | - maxTokens: 16384, |
90 | | - contextWindow: 128000, |
| 83 | + "gpt-4o": { |
| 84 | + maxTokens: 4096, |
| 85 | + contextWindow: 200_000, |
91 | 86 | supportsImages: true, |
92 | 87 | supportsPromptCache: false, |
93 | | - inputPrice: 0.15, |
94 | | - outputPrice: 0.6, |
| 88 | + description: sapAiCoreModelDescription, |
95 | 89 | }, |
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, |
100 | 94 | supportsPromptCache: false, |
101 | | - inputPrice: 15.0, |
102 | | - outputPrice: 60.0, |
| 95 | + description: sapAiCoreModelDescription, |
103 | 96 | }, |
104 | 97 | "gpt-4.1": { |
105 | | - maxTokens: 32768, |
106 | | - contextWindow: 128000, |
| 98 | + maxTokens: 32_768, |
| 99 | + contextWindow: 1_047_576, |
107 | 100 | supportsImages: true, |
108 | | - supportsPromptCache: false, |
109 | | - inputPrice: 5.0, |
110 | | - outputPrice: 15.0, |
| 101 | + supportsPromptCache: true, |
| 102 | + description: sapAiCoreModelDescription, |
111 | 103 | }, |
112 | 104 | "gpt-4.1-nano": { |
113 | | - maxTokens: 16384, |
114 | | - contextWindow: 128000, |
| 105 | + maxTokens: 32_768, |
| 106 | + contextWindow: 1_047_576, |
115 | 107 | supportsImages: true, |
116 | | - supportsPromptCache: false, |
117 | | - inputPrice: 0.15, |
118 | | - outputPrice: 0.6, |
| 108 | + supportsPromptCache: true, |
| 109 | + description: sapAiCoreModelDescription, |
119 | 110 | }, |
120 | 111 | "gpt-5": { |
121 | | - maxTokens: 32768, |
122 | | - contextWindow: 256000, |
| 112 | + maxTokens: 128_000, |
| 113 | + contextWindow: 272_000, |
123 | 114 | supportsImages: true, |
124 | | - supportsPromptCache: false, |
125 | | - inputPrice: 10.0, |
126 | | - outputPrice: 30.0, |
| 115 | + supportsPromptCache: true, |
| 116 | + description: sapAiCoreModelDescription, |
127 | 117 | }, |
128 | 118 | "gpt-5-nano": { |
129 | | - maxTokens: 16384, |
130 | | - contextWindow: 256000, |
| 119 | + maxTokens: 128_000, |
| 120 | + contextWindow: 272_000, |
131 | 121 | supportsImages: true, |
132 | | - supportsPromptCache: false, |
133 | | - inputPrice: 0.5, |
134 | | - outputPrice: 1.5, |
| 122 | + supportsPromptCache: true, |
| 123 | + description: sapAiCoreModelDescription, |
135 | 124 | }, |
136 | 125 | "gpt-5-mini": { |
137 | | - maxTokens: 16384, |
138 | | - contextWindow: 256000, |
| 126 | + maxTokens: 128_000, |
| 127 | + contextWindow: 272_000, |
139 | 128 | supportsImages: true, |
140 | | - supportsPromptCache: false, |
141 | | - inputPrice: 1.0, |
142 | | - outputPrice: 3.0, |
| 129 | + supportsPromptCache: true, |
| 130 | + description: sapAiCoreModelDescription, |
143 | 131 | }, |
144 | | - "o3-mini": { |
145 | | - maxTokens: 100000, |
146 | | - contextWindow: 200000, |
147 | | - supportsImages: false, |
| 132 | + o1: { |
| 133 | + maxTokens: 4096, |
| 134 | + contextWindow: 200_000, |
| 135 | + supportsImages: true, |
148 | 136 | supportsPromptCache: false, |
149 | | - inputPrice: 1.0, |
150 | | - outputPrice: 4.0, |
| 137 | + description: sapAiCoreModelDescription, |
151 | 138 | }, |
152 | 139 | 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, |
167 | 145 | }, |
168 | | - // Gemini models |
169 | | - "gemini-2.5-flash": { |
170 | | - maxTokens: 8192, |
171 | | - contextWindow: 1000000, |
| 146 | + "o3-mini": { |
| 147 | + maxTokens: 4096, |
| 148 | + contextWindow: 200_000, |
172 | 149 | supportsImages: true, |
173 | 150 | supportsPromptCache: false, |
174 | | - inputPrice: 0.5, |
175 | | - outputPrice: 1.5, |
176 | | - maxThinkingTokens: 32768, |
| 151 | + description: sapAiCoreModelDescription, |
177 | 152 | }, |
178 | | - "gemini-2.5-pro": { |
179 | | - maxTokens: 8192, |
180 | | - contextWindow: 2000000, |
| 153 | + "o4-mini": { |
| 154 | + maxTokens: 100_000, |
| 155 | + contextWindow: 200_000, |
181 | 156 | supportsImages: true, |
182 | | - supportsPromptCache: false, |
183 | | - inputPrice: 2.5, |
184 | | - outputPrice: 10.0, |
185 | | - maxThinkingTokens: 65536, |
| 157 | + supportsPromptCache: true, |
| 158 | + description: sapAiCoreModelDescription, |
186 | 159 | }, |
187 | | -} satisfies Record<string, ModelInfo> |
| 160 | +} as const satisfies Record<string, ModelInfo> |
0 commit comments