Skip to content

Commit cea0fe9

Browse files
committed
feat: add Qwen/Qwen3-235B-A22B-Instruct-2507 model to Chutes AI provider
- Added model ID to ChutesModelId type - Added model configuration with 262,144 token context window - Added test case to verify model configuration - Fixes #6050
1 parent df6c57d commit cea0fe9

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

packages/types/src/providers/chutes.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export type ChutesModelId =
1818
| "deepseek-ai/DeepSeek-R1-Zero"
1919
| "deepseek-ai/DeepSeek-V3-0324"
2020
| "Qwen/Qwen3-235B-A22B"
21+
| "Qwen/Qwen3-235B-A22B-Instruct-2507"
2122
| "Qwen/Qwen3-32B"
2223
| "Qwen/Qwen3-30B-A3B"
2324
| "Qwen/Qwen3-14B"
@@ -226,4 +227,13 @@ export const chutesModels = {
226227
outputPrice: 0,
227228
description: "TNGTech DeepSeek R1T Chimera model.",
228229
},
230+
"Qwen/Qwen3-235B-A22B-Instruct-2507": {
231+
maxTokens: 32768,
232+
contextWindow: 262144,
233+
supportsImages: false,
234+
supportsPromptCache: false,
235+
inputPrice: 0,
236+
outputPrice: 0,
237+
description: "Qwen3 235B A22B Instruct 2507 model with 262K context window.",
238+
},
229239
} as const satisfies Record<string, ModelInfo>

src/api/providers/__tests__/chutes.spec.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,28 @@ describe("ChutesHandler", () => {
163163
expect(model.info).toEqual(expect.objectContaining(chutesModels[testModelId]))
164164
})
165165

166+
it("should return Qwen3-235B-A22B-Instruct-2507 model with correct configuration", () => {
167+
const testModelId: ChutesModelId = "Qwen/Qwen3-235B-A22B-Instruct-2507"
168+
const handlerWithModel = new ChutesHandler({
169+
apiModelId: testModelId,
170+
chutesApiKey: "test-chutes-api-key",
171+
})
172+
const model = handlerWithModel.getModel()
173+
expect(model.id).toBe(testModelId)
174+
expect(model.info).toEqual(
175+
expect.objectContaining({
176+
maxTokens: 32768,
177+
contextWindow: 262144,
178+
supportsImages: false,
179+
supportsPromptCache: false,
180+
inputPrice: 0,
181+
outputPrice: 0,
182+
description: "Qwen3 235B A22B Instruct 2507 model with 262K context window.",
183+
temperature: 0.5, // Default temperature for non-DeepSeek models
184+
}),
185+
)
186+
})
187+
166188
it("completePrompt method should return text from Chutes API", async () => {
167189
const expectedResponse = "This is a test response from Chutes"
168190
mockCreate.mockResolvedValueOnce({ choices: [{ message: { content: expectedResponse } }] })

0 commit comments

Comments
 (0)