mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
Implements [AIGOV-481](https://linear.app/codercom/issue/AIGOV-481/featai-gateway-support-anthropic-v1messages-route-on-the-copilot). Adds the Anthropic-style `/v1/messages` route to the Copilot provider. GitHub Copilot CLI (1.0.65) using the default `Claude Sonnet 4.6 (default)` model sends Anthropic-style `/v1/messages` requests through `aibridgeproxyd` to the Copilot provider. The provider only registered the OpenAI-compatible `/chat/completions` and `/responses` routes, so these requests failed: ``` CAPIError: 404 404 404 route not supported: POST /copilot/v1/messages ``` *This PR was produced by opencode (agent) using the `anthropic/claude-opus-4-8` model, under human direction and review.*