Skip to content

Commit 3b26b07

Browse files
committed
fix: tests
1 parent 2b43292 commit 3b26b07

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

packages/types/src/providers/openrouter.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ export const OPEN_ROUTER_PROMPT_CACHING_MODELS = new Set([
4040
"anthropic/claude-sonnet-4",
4141
"anthropic/claude-opus-4",
4242
"google/gemini-2.5-pro-preview",
43-
"google/gemini-2.5-pro-preview:thinking",
44-
"google/gemini-2.5-pro-preview-05-06",
4543
"google/gemini-2.5-flash-preview",
4644
"google/gemini-2.5-flash-preview:thinking",
4745
"google/gemini-2.5-flash-preview-05-20",
@@ -68,13 +66,11 @@ export const OPEN_ROUTER_REASONING_BUDGET_MODELS = new Set([
6866
"anthropic/claude-opus-4",
6967
"anthropic/claude-sonnet-4",
7068
"google/gemini-2.5-pro-preview",
71-
"google/gemini-2.5-pro-preview:thinking",
7269
"google/gemini-2.5-flash-preview-05-20",
7370
"google/gemini-2.5-flash-preview-05-20:thinking",
7471
])
7572

7673
export const OPEN_ROUTER_REQUIRED_REASONING_BUDGET_MODELS = new Set([
7774
"anthropic/claude-3.7-sonnet:thinking",
78-
"google/gemini-2.5-pro-preview:thinking",
7975
"google/gemini-2.5-flash-preview-05-20:thinking",
8076
])

src/api/providers/fetchers/__tests__/openrouter.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,11 @@ describe("OpenRouter API", () => {
185185

186186
expect(endpoints).toEqual({
187187
Google: {
188-
maxTokens: 0,
188+
maxTokens: 65535,
189189
contextWindow: 1048576,
190190
supportsImages: true,
191191
supportsPromptCache: true,
192+
supportsReasoningBudget: true,
192193
inputPrice: 1.25,
193194
outputPrice: 10,
194195
cacheWritesPrice: 1.625,
@@ -198,10 +199,11 @@ describe("OpenRouter API", () => {
198199
supportedParameters: undefined,
199200
},
200201
"Google AI Studio": {
201-
maxTokens: 0,
202+
maxTokens: 65536,
202203
contextWindow: 1048576,
203204
supportsImages: true,
204205
supportsPromptCache: true,
206+
supportsReasoningBudget: true,
205207
inputPrice: 1.25,
206208
outputPrice: 10,
207209
cacheWritesPrice: 1.625,

0 commit comments

Comments
 (0)