From 4f9deddd477dfbcb39d6274751cd1b44b7507aff Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Wed, 28 Jan 2026 23:55:54 +0100 Subject: [PATCH] fix(ai): detect DeepSeek URLs and disable unsupported developer role fixes #1048 --- packages/ai/CHANGELOG.md | 1 + packages/ai/src/providers/openai-completions.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/ai/CHANGELOG.md b/packages/ai/CHANGELOG.md index c3b9c3e4..61502e6b 100644 --- a/packages/ai/CHANGELOG.md +++ b/packages/ai/CHANGELOG.md @@ -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 diff --git a/packages/ai/src/providers/openai-completions.ts b/packages/ai/src/providers/openai-completions.ts index c4332b3c..5724ad93 100644 --- a/packages/ai/src/providers/openai-completions.ts +++ b/packages/ai/src/providers/openai-completions.ts @@ -763,6 +763,7 @@ function detectCompat(model: Model<"openai-completions">): Required