mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Merge pull request #1407 from olweraltuve/fix-deepseek-official-api-2
fix(deepseek): update base URL to remove /v1 endpoint
This commit is contained in:
commit
d2c202977a
2 changed files with 3 additions and 3 deletions
|
|
@ -72,7 +72,7 @@ describe("DeepSeekHandler", () => {
|
|||
mockOptions = {
|
||||
deepSeekApiKey: "test-api-key",
|
||||
apiModelId: "deepseek-chat",
|
||||
deepSeekBaseUrl: "https://api.deepseek.com/v1",
|
||||
deepSeekBaseUrl: "https://api.deepseek.com",
|
||||
}
|
||||
handler = new DeepSeekHandler(mockOptions)
|
||||
mockCreate.mockClear()
|
||||
|
|
@ -110,7 +110,7 @@ describe("DeepSeekHandler", () => {
|
|||
// The base URL is passed to OpenAI client internally
|
||||
expect(OpenAI).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
baseURL: "https://api.deepseek.com/v1",
|
||||
baseURL: "https://api.deepseek.com",
|
||||
}),
|
||||
)
|
||||
})
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ export class DeepSeekHandler extends OpenAiHandler {
|
|||
...options,
|
||||
openAiApiKey: options.deepSeekApiKey ?? "not-provided",
|
||||
openAiModelId: options.apiModelId ?? deepSeekDefaultModelId,
|
||||
openAiBaseUrl: options.deepSeekBaseUrl ?? "https://api.deepseek.com/v1",
|
||||
openAiBaseUrl: options.deepSeekBaseUrl ?? "https://api.deepseek.com",
|
||||
openAiStreamingEnabled: true,
|
||||
includeMaxTokens: true,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue