Skip to content

Feature request: support claude-sonnet-5 #7

Description

@mihailmariusiondev

Thanks for the great work adding model-by-model support (opus 4.8, opus 4.6/4.7 1m, etc.)!

Since Claude Sonnet 5 was released, using it via Claude Code through copilot-bridge fails with:

API Error: 400 This model does not support assistant message prefill. The conversation must end with a user message.

Confirmed on v0.20.16 (latest): claude-sonnet-5 is listed as an available Copilot model (GET /v1/models returns it), and works fine for simple single-turn requests via raw HTTP to /v1/messages. The 400 only happens with real Claude Code sessions, which is consistent with the same pattern that affected opus-4.6/opus-4.7/sonnet-4.6 before they got the fallback: "chat-completions" treatment in MODEL_CAPABILITIES.

Would it be possible to add claude-sonnet-5 to MODEL_CAPABILITIES with the same chat-completions fallback used for the other Claude models? Happy to test a pre-release build if useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions