Skip to content

fix(llm): fallback to Responses API for incompatible gateways - #4

Closed
Quchaosheng wants to merge 4 commits into
OpenFuckJob:masterfrom
Quchaosheng:fix/company-responses-fallback
Closed

fix(llm): fallback to Responses API for incompatible gateways#4
Quchaosheng wants to merge 4 commits into
OpenFuckJob:masterfrom
Quchaosheng:fix/company-responses-fallback

Conversation

@Quchaosheng

Copy link
Copy Markdown

Summary

  • add automatic fallback from OpenAI Chat Completions to the Responses API
  • support gateways that expose Responses (for example company Codex-compatible relays)
  • preserve existing Chat Completions behavior and provide a non-streaming fallback for stream callers

Why

Some OpenAI-compatible gateways return 503 for /chat/completions while the same endpoint works with /responses. FuckJob previously surfaced the 503 directly.

Testing

  • pnpm run build ✅
  • cargo check / Tauri build blocked locally because the Windows MSVC linker (link.exe) is not installed

@Quchaosheng
Quchaosheng force-pushed the fix/company-responses-fallback branch from e77c3d7 to c7ea5c6 Compare August 8, 2026 13:56
@Quchaosheng

Copy link
Copy Markdown
Author

修复了一些格式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant