Skip to content

Commit d2c2029

Browse files
authored
Merge pull request RooCodeInc#1407 from olweraltuve/fix-deepseek-official-api-2
fix(deepseek): update base URL to remove /v1 endpoint
2 parents 0d4a15e + 2e78662 commit d2c2029

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/api/providers/__tests__/deepseek.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
})

src/api/providers/deepseek.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
})

0 commit comments

Comments
 (0)