opencode
opencode copied to clipboard
GitLab Duo /models selection still responds as Claude 3.5 Sonnet
Description
When using GitLab Duo (OAuth login) and selecting a Duo model via /models (e.g., gitlab/duo-chat-opus-4-5), the chat responses still identify as Claude 3.5 Sonnet. It looks like the GitLab provider doesn’t map the selected duo-chat-* model to the underlying Anthropic model, and also doesn’t pass through provider.gitlab.options.
Plugins
No response
OpenCode version
1.1.19
Steps to reproduce
- Authenticate with GitLab via OAuth in OpenCode
- Open TUI and run
/models - Select
gitlab/duo-chat-opus-4-5(orduo-chat-sonnet-4-5) - Send a prompt
- The assistant responds identifying as Claude 3.5 Sonnet instead of the selected Duo 4.5 model
Expected behavior The response should match the selected Duo model (e.g., Claude Opus 4.5 or Sonnet 4.5).
Possible root cause
packages/opencode/src/provider/provider.ts GitLab loader calls:
sdk.agenticChat(modelID, { anthropicModel, featureFlags })
But:
-
provider.gitlab.optionsis not merged into options (only featureFlags are) - there is no mapping from
duo-chat-opus-4-5→claude-opus-4-5(and similar)
So anthropicModel stays undefined and the GitLab SDK likely defaults to Claude 3.5 Sonnet.
Screenshot and/or share link
No response
Operating System
Ubuntu 24.04
Terminal
Windows Terminal