Skip to content

feat(AI Gateway): support Anthropic /v1/messages route on the Copilot provider #1608

Description

@ssncferreira

When using GitHub Copilot CLI 1.0.65 with the current default model "Claude Sonnet 4.6 (default)", requests go through aibridgeproxyd to the Copilot provider in aibridge, which currently only supports OpenAI-compatible routes (/chat/completions, /responses). The Anthropic-style /v1/messages route is not registered, so it fails with:

CAPIError: 404 404 404 route not supported: POST /copilot/v1/messages
Image

Fix

Add /v1/messages as a bridged route to the Copilot provider in aibridge/provider/copilot.go, reusing the existing intercept/messages logic from the Anthropic provider.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions