Skip to content

Commit 35643a3

Browse files
committed
fix(deepseek): update base URL to remove /v1 endpoint
1 parent 1807408 commit 35643a3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "Roo Code (prev. Roo Cline)",
44
"description": "A whole dev team of AI agents in your editor.",
55
"publisher": "RooVeterinaryInc",
6-
"version": "3.7.12",
6+
"version": "3.7.13",
77
"icon": "assets/icons/rocket.png",
88
"galleryBanner": {
99
"color": "#617A91",

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)