9router/open-sse/executors
mustafabozkaya f3176b4b23 fix: implement json_schema fallback for OpenAI-compatible providers (#1343)
When json_schema response_format is sent to models that do not natively
support Structured Output (e.g. DeepSeek/Ollama/local LLMs via
openai-compatible-* providers), they often return empty or malformed
content.

Detect response_format.type === "json_schema", inject the schema into the
system prompt, and downgrade response_format to json_object so Structured
Output works transparently across openai-compatible providers.

Gated to provider.startsWith("openai-compatible-") so providers with
native Structured Output support are not downgraded.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-26 11:35:39 +07:00
..
antigravity.js Enhance chat handling and introduce Caveman feature 2026-04-30 18:00:38 +07:00
azure.js feat: add Azure OpenAI provider support 2026-04-24 10:04:59 +07:00
base.js Fix codex 2026-05-26 11:35:39 +07:00
codex.js Fix codex 2026-05-26 11:35:39 +07:00
commandcode.js feat: add CommandCode provider support 2026-05-07 23:01:33 +07:00
cursor.js fix: decode Composer cursor thinking output (#1310) 2026-05-21 09:52:30 +07:00
default.js fix: implement json_schema fallback for OpenAI-compatible providers (#1343) 2026-05-26 11:35:39 +07:00
gemini-cli.js feat(gemini-cli): wrap CloudCode payload and surface 429 retryDelay 2026-05-18 15:23:38 +07:00
github.js Enhance token refresh functionality across multiple executors 2026-04-28 17:28:57 +07:00
grok-web.js feat: add support for Grok Web and Perplexity Web providers 2026-04-22 11:58:53 +07:00
iflow.js fix(iflow): inject stream_options for usage data in streaming 2026-03-23 12:03:11 +07:00
index.js feat: add CommandCode provider support 2026-05-07 23:01:33 +07:00
kiro.js https://github.com/decolua/9router/pull/1167 2026-05-16 11:20:08 +07:00
ollama-local.js feat: add OllamaLocalExecutor and update provider handling 2026-05-07 16:42:36 +07:00
opencode-go.js Fix : Add reasoning_content placeholder for DeepSeek thinking models 2026-04-29 09:34:24 +07:00
opencode.js Refactor error handling to config-driven approach with centralized error rules 2026-04-15 11:46:47 +07:00
perplexity-web.js feat: add support for Grok Web and Perplexity Web providers 2026-04-22 11:58:53 +07:00
qoder.js Fix bug 2026-03-31 15:44:19 +07:00
qwen.js fix: strip stream_options for qwen non-streaming Claude Code requests (closes #557) (#663) 2026-05-03 15:21:43 +07:00
vertex.js fix: use project-scoped Vertex URL for SA JSON auth and add ?alt=sse for streaming (closes #388) 2026-03-27 11:03:49 +07:00