mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 20:00:47 +00:00
The previous merge used sourceFormat check which broke Cursor when it sends openai-responses format requests. Now uses user-agent detection: - Droid CLI (user-agent contains 'droid' or 'codex-cli') → passthrough - Other clients (Cursor, etc.) → translate to Chat Completions format This fixes the API translation for both clients. Co-authored-by: Hellodebasishsahu <itsyourboydevil@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com>