fix(ai): detect DeepSeek URLs and disable unsupported developer role

fixes #1048
This commit is contained in:
Mario Zechner 2026-01-28 23:55:54 +01:00
parent ee7c0a7d18
commit 4f9deddd47
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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");