mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 10:05:14 +00:00
fix(ai): detect DeepSeek URLs and disable unsupported developer role
fixes #1048
This commit is contained in:
parent
ee7c0a7d18
commit
4f9deddd47
2 changed files with 2 additions and 0 deletions
|
|
@ -5,6 +5,7 @@
|
|||
### Fixed
|
||||
|
||||
- Fixed Anthropic provider to handle `sensitive` stop_reason returned by API ([#978](https://github.com/badlogic/pi-mono/issues/978))
|
||||
- Fixed DeepSeek API compatibility by detecting `deepseek.com` URLs and disabling unsupported `developer` role ([#1048](https://github.com/badlogic/pi-mono/issues/1048))
|
||||
|
||||
## [0.50.1] - 2026-01-26
|
||||
|
||||
|
|
|
|||
|
|
@ -763,6 +763,7 @@ function detectCompat(model: Model<"openai-completions">): Required<OpenAIComple
|
|||
provider === "mistral" ||
|
||||
baseUrl.includes("mistral.ai") ||
|
||||
baseUrl.includes("chutes.ai") ||
|
||||
baseUrl.includes("deepseek.com") ||
|
||||
isZai ||
|
||||
provider === "opencode" ||
|
||||
baseUrl.includes("opencode.ai");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue