File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ describe("DeepSeekHandler", () => {
7272 mockOptions = {
7373 deepSeekApiKey : "test-api-key" ,
7474 apiModelId : "deepseek-chat" ,
75- deepSeekBaseUrl : "https://api.deepseek.com/v1 " ,
75+ deepSeekBaseUrl : "https://api.deepseek.com" ,
7676 }
7777 handler = new DeepSeekHandler ( mockOptions )
7878 mockCreate . mockClear ( )
@@ -110,7 +110,7 @@ describe("DeepSeekHandler", () => {
110110 // The base URL is passed to OpenAI client internally
111111 expect ( OpenAI ) . toHaveBeenCalledWith (
112112 expect . objectContaining ( {
113- baseURL : "https://api.deepseek.com/v1 " ,
113+ baseURL : "https://api.deepseek.com" ,
114114 } ) ,
115115 )
116116 } )
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export class DeepSeekHandler extends OpenAiHandler {
88 ...options ,
99 openAiApiKey : options . deepSeekApiKey ?? "not-provided" ,
1010 openAiModelId : options . apiModelId ?? deepSeekDefaultModelId ,
11- openAiBaseUrl : options . deepSeekBaseUrl ?? "https://api.deepseek.com/v1 " ,
11+ openAiBaseUrl : options . deepSeekBaseUrl ?? "https://api.deepseek.com" ,
1212 openAiStreamingEnabled : true ,
1313 includeMaxTokens : true ,
1414 } )
You can’t perform that action at this time.
0 commit comments