Skip to content

Commit 8dcc078

Browse files
roomote[bot]roomote-agentmrubens
authored
feat: add Qwen/Qwen3-235B-A22B-Instruct-2507 model to Chutes AI provider (#6052)
Co-authored-by: Roo Code <roomote@roocode.com> Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
1 parent c6a29f3 commit 8dcc078

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"
@@ -163,6 +164,15 @@ export const chutesModels = {
163164
outputPrice: 0,
164165
description: "DeepSeek V3 (0324) model.",
165166
},
167+
"Qwen/Qwen3-235B-A22B-Instruct-2507": {
168+
maxTokens: 32768,
169+
contextWindow: 262144,
170+
supportsImages: false,
171+
supportsPromptCache: false,
172+
inputPrice: 0,
173+
outputPrice: 0,
174+
description: "Qwen3 235B A22B Instruct 2507 model with 262K context window.",
175+
},
166176
"Qwen/Qwen3-235B-A22B": {
167177
maxTokens: 32768,
168178
contextWindow: 40960,

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)