feat: add OpenCode AI Bridge client support - #26098
Conversation
Docs preview📖 View docs preview for |
dannykopping
left a comment
There was a problem hiding this comment.
Self-review: ✅
There was a problem hiding this comment.
LGTM 👍
Edit: (Unrelated comment, regarding providers)
Now with multiple provider support, I'm wondering if we could remove the copilot provider and just use a customizable openai provider 🤔 this would require some changes:
- Copilot is only BYOK and OpenAI also supports Centralized, so we would need a way to limit this
- Route prefix: make
/v1optional - Passthrough routes: make them configurable
I think this would probably be cleaner
Not sure I follow Can you elaborate please? |
Sorry, ignore me. My comment was about providers, not clients. I thought we were using an OpenAI provider for OpenCode, but this is just a client 🤦♀️ |
Adds OpenCode to AI Bridge client detection so requests with user agents like
opencode/1.16.0 ai-sdk/provider-utils/4.0.23 runtime/bun/1.3.14show up as a first-class client instead ofUnknown.This also wires the existing OpenCode frontend asset into the AIBridge UI, adds a Storybook story for the client icon, and updates the monitoring docs list of supported client values.
Coder Agents generated
This pull request was generated by Coder Agents.