File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/api/providers/__tests__ Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -214,6 +214,15 @@ describe("UnboundHandler", () => {
214214 const nonAnthropicOptions = {
215215 apiModelId : "openai/gpt-4o" ,
216216 unboundApiKey : "test-key" ,
217+ unboundModelId : "openai/gpt-4o" ,
218+ unboundModelInfo : {
219+ description : "OpenAI's GPT-4" ,
220+ maxTokens : undefined ,
221+ contextWindow : 128000 ,
222+ supportsPromptCache : true ,
223+ inputPrice : 0.01 ,
224+ outputPrice : 0.03 ,
225+ } ,
217226 }
218227 const nonAnthropicHandler = new UnboundHandler ( nonAnthropicOptions )
219228
@@ -243,7 +252,7 @@ describe("UnboundHandler", () => {
243252 unboundModelInfo : undefined ,
244253 } )
245254 const modelInfo = handlerWithInvalidModel . getModel ( )
246- expect ( modelInfo . id ) . toBe ( "openai/gpt-4o " ) // Default model
255+ expect ( modelInfo . id ) . toBe ( "anthropic/claude-3-5-sonnet-20241022 " ) // Default model
247256 expect ( modelInfo . info ) . toBeDefined ( )
248257 } )
249258 } )
You can’t perform that action at this time.
0 commit comments