Skip to content

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

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

fix(llm): fallback to Responses API for incompatible gateways#12
Quchaosheng wants to merge 5 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, including company Codex-compatible relays
  • handle no_available_providers and HTTP 503 gateway failures
  • preserve existing Chat Completions behavior and provide a non-streaming fallback for stream callers

Why

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

Testing

  • pnpm run build
  • Windows installer built successfully during validation

Supersedes #4 and #10. Their head repositories were detached from the fork network after repository visibility changes.

@NingNing0111

Copy link
Copy Markdown
Contributor

新版本0.1.15 支持了 OpenAI 新接口:responses, 请升级到新版本再验证

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.

2 participants