GitLab Duo /models selection still responds as Claude 3.5 Sonnet #5599

Closed
opened 2026-02-16 17:54:37 -05:00 by yindo · 0 comments
Owner

Originally created by @harkaranbrar7 on GitHub (Jan 14, 2026).

Originally assigned to: @rekram1-node on GitHub.

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

  1. Authenticate with GitLab via OAuth in OpenCode
  2. Open TUI and run /models
  3. Select gitlab/duo-chat-opus-4-5 (or duo-chat-sonnet-4-5)
  4. Send a prompt
  5. 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.options is not merged into options (only featureFlags are)
  • there is no mapping from duo-chat-opus-4-5claude-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

Originally created by @harkaranbrar7 on GitHub (Jan 14, 2026). Originally assigned to: @rekram1-node on GitHub. ### 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 1. Authenticate with GitLab via OAuth in OpenCode 2. Open TUI and run `/models` 3. Select `gitlab/duo-chat-opus-4-5` (or `duo-chat-sonnet-4-5`) 4. Send a prompt 5. 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.options` is 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
yindo closed this issue 2026-02-16 17:54:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5599