doc/user/duo_agent_platform/model_selection.md
{{< details >}}
{{< /details >}}
Every GitLab Duo feature uses a default model. GitLab might update default models to optimize performance. For some features, you can select a different model, which persists until you change it.
This table lists the default model for each feature in the Agent Platform.
| Feature | Model |
|---|---|
| GitLab Duo Agentic Chat | Claude Sonnet 4.6 Vertex |
| Code Review Flow | Claude Sonnet 4.6 Vertex |
| All other agents | Claude Sonnet 4.5 Vertex |
This table lists the models you can select for features in the Agent Platform.
| Model | GitLab Duo Agentic Chat | All other agents |
|---|---|---|
| Claude Sonnet 4 | {{< yes >}} | {{< yes >}} |
| Claude Sonnet 4 Vertex | {{< yes >}} | {{< yes >}} |
| Claude Sonnet 4.5 | {{< yes >}} | {{< yes >}} |
| Claude Sonnet 4.5 Vertex | {{< yes >}} | {{< yes >}} |
| Claude Sonnet 4.6 | {{< yes >}} | {{< yes >}} |
| Claude Haiku 4.5 | {{< yes >}} | {{< yes >}} |
| Claude Opus 4.5 | {{< yes >}} | {{< yes >}} |
| Claude Opus 4.6 | {{< yes >}} | {{< yes >}} |
| GPT-5 | {{< yes >}} | {{< yes >}} |
| GPT-5 Codex | {{< yes >}} | {{< yes >}} |
| GPT-5.2 Codex | {{< yes >}} | {{< yes >}} |
| GPT-5.3 Codex | {{< yes >}} | {{< yes >}} |
| GPT-5 Mini | {{< yes >}} | {{< yes >}} |
| GPT-5.2 | {{< yes >}} | {{< yes >}} |
{{< details >}}
{{< /details >}}
{{< history >}}
ai_model_switching. Disabled by default.duo_agent_platform_model_selection. Disabled by default.ai_model_switching enabled.duo_agent_platform_model_selection enabled in GitLab 18.6.ai_model_switching removed in GitLab 18.7.duo_agent_platform_model_selection removed in GitLab 18.9.{{< /history >}}
You can select a model for a feature in a top-level group. The model that you select applies to that feature for all child groups and projects.
Prerequisites:
To select a model for a feature:
In the IDE, model selection for GitLab Duo Agentic Chat is applied only when the connection type is set to WebSocket.
To specify a model for the GitLab Duo CLI, see select a model.
When selecting models other than the default, you might encounter the following issues.
If you are using the default GitLab model for a GitLab Duo AI-native feature, GitLab might change the default model without notifying the user to maintain optimal performance and reliability.
If you have selected a specific model for a GitLab Duo AI-native feature, and that model is not available, there is no automatic fallback. The feature that uses this model is unavailable.
When using a GitLab Duo feature with a selected model, you might get an error that states that you have not selected a default GitLab Duo namespace. For example, on:
Error 422: I'm sorry, you have not selected a default GitLab Duo namespace. Please go to GitLab and in user Preferences - Behavior, select a default namespace for GitLab Duo.Error G3002: I'm sorry, you have not selected a default GitLab Duo namespace. Please go to GitLab and in user Preferences - Behavior, select a default namespace for GitLab Duo.This issue occurs when you belong to multiple GitLab Duo namespaces, but have not chosen one as your default namespace.
To resolve this, set a default GitLab Duo namespace.