File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
packages/types/src/providers
src/api/providers/__tests__ Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ export type ChutesModelId =
18
18
| "deepseek-ai/DeepSeek-R1-Zero"
19
19
| "deepseek-ai/DeepSeek-V3-0324"
20
20
| "Qwen/Qwen3-235B-A22B"
21
+ | "Qwen/Qwen3-235B-A22B-Instruct-2507"
21
22
| "Qwen/Qwen3-32B"
22
23
| "Qwen/Qwen3-30B-A3B"
23
24
| "Qwen/Qwen3-14B"
@@ -163,6 +164,15 @@ export const chutesModels = {
163
164
outputPrice : 0 ,
164
165
description : "DeepSeek V3 (0324) model." ,
165
166
} ,
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
+ } ,
166
176
"Qwen/Qwen3-235B-A22B" : {
167
177
maxTokens : 32768 ,
168
178
contextWindow : 40960 ,
Original file line number Diff line number Diff line change @@ -163,6 +163,28 @@ describe("ChutesHandler", () => {
163
163
expect ( model . info ) . toEqual ( expect . objectContaining ( chutesModels [ testModelId ] ) )
164
164
} )
165
165
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
+
166
188
it ( "completePrompt method should return text from Chutes API" , async ( ) => {
167
189
const expectedResponse = "This is a test response from Chutes"
168
190
mockCreate . mockResolvedValueOnce ( { choices : [ { message : { content : expectedResponse } } ] } )
You can’t perform that action at this time.
0 commit comments