9router/open-sse
Tran Hoang Nguyen 80a2bfcfd7
fix: normalize developer role to system for OpenAI-format providers (#1011)
Deepseek API (and likely other providers) reject messages with
role: 'developer' — only accept system, user, assistant, tool.
filterToOpenAIFormat() normalizes content blocks but never touched
message roles, so developer passed through unmodified and caused
400 errors (issue #773).

Fix: add one-line developer → system mapping in filterToOpenAIFormat()
before role-specific logic. This is the common normalization point
called for all targetFormat=openai providers (Deepseek, Groq, Mistral,
Perplexity, Together, Fireworks, Cerebras, xAI, NVIDIA, etc.)

Closes #773
2026-05-11 15:57:28 +07:00
..
config # v0.4.29 (2026-05-10) 2026-05-10 21:56:40 +07:00
executors feat: add CommandCode provider support 2026-05-07 23:01:33 +07:00
handlers Add Cloudflare Workers AI image generation (#973) 2026-05-09 09:53:39 +07:00
rtk Enhance chat handling and introduce Caveman feature 2026-04-30 18:00:38 +07:00
services feat: add CommandCode provider support 2026-05-07 23:01:33 +07:00
transformer feat: enhance request handling and error management in chatCore and streamToJsonConverter 2026-02-15 12:02:53 +07:00
translator fix: normalize developer role to system for OpenAI-format providers (#1011) 2026-05-11 15:57:28 +07:00
utils # v0.4.29 (2026-05-10) 2026-05-10 21:56:40 +07:00
.npmignore Update jsconfig.json and package.json to correct open-sse path references from relative to local directory. 2026-01-05 10:37:09 +07:00
index.js Refactor config 2026-03-12 16:20:46 +07:00