GitLab Duo AI models
- Tier: Premium, Ultimate
- Add-on: GitLab Duo Core, Pro or Enterprise
- Offering: GitLab.com, GitLab Self-Managed, GitLab Dedicated
Every GitLab Duo feature uses a default model. GitLab might update default models to optimize performance. You can select a different model for a feature, which persists until you change it.
Default models
The following table lists the default model for each GitLab Duo feature.
| Feature | Model |
|---|---|
| Code Suggestions | |
| Code Generation | Claude Sonnet 4.6 Vertex |
| Code Completion | Codestral 25.08 Fireworks |
| GitLab Duo Chat | |
| General Chat | Claude Sonnet 4.6 Vertex |
| Code Explanation | Claude Sonnet 4.6 Vertex |
| Test Generation | Claude Sonnet 4.6 Vertex |
| Refactor Code | Claude Sonnet 4.6 Vertex |
| Fix Code | Claude Sonnet 4.6 Vertex |
| Root Cause Analysis | Claude Sonnet 4.6 Vertex |
| GitLab Duo for merge requests | |
| Merge Commit Message Generation | Claude Sonnet 4.6 Vertex |
| Merge Request Summary | Claude Sonnet 4.6 Vertex |
| Code Review Summary | Claude Sonnet 4.6 Vertex |
| Code Review | Claude Sonnet 4.5 Vertex |
| Other GitLab Duo features | |
| Vulnerability Explanation | Claude Sonnet 4.6 Vertex |
| Vulnerability Resolution | Claude Sonnet 4.6 Vertex |
| Discussion Summary | Claude Sonnet 4.6 Vertex |
| GitLab Duo for CLI | Claude Sonnet 4.6 Vertex |
Supported models
The following tables list the models you can select for each feature.
Code Suggestions
| Model | Code Generation | Code Completion |
|---|---|---|
| Claude Sonnet 4 | ||
| Claude Sonnet 4 Vertex | ||
| Claude Sonnet 4 Bedrock | ||
| Claude Sonnet 4.5 | ||
| Codestral 25.01 Fireworks | No | |
| Codestral 25.08 Fireworks | No | |
| Codestral 25.08 Vertex | No | |
| Gemini 2.5 Flash Vertex | No |
GitLab Duo Non-Agentic Chat
| Model | General Chat | Code Explanation | Test Generation | Refactor Code | Fix Code | Root Cause Analysis |
|---|---|---|---|---|---|---|
| Claude Haiku 4.5 | No | No | ||||
| Claude Sonnet 3 | No | No | ||||
| Claude Sonnet 4 | ||||||
| Claude Sonnet 4 Vertex | ||||||
| Claude Sonnet 4.5 | ||||||
| Claude Sonnet 4.5 Vertex |
GitLab Duo for merge requests
| Model | Merge Commit Message Generation | Merge Request Summary | Code Review Summary | Code Review |
|---|---|---|---|---|
| Claude Sonnet 4 | ||||
| Claude Sonnet 4 Vertex | ||||
| Claude Sonnet 4.5 | ||||
| Claude Sonnet 4.5 Vertex | No | No | No | |
| Claude Sonnet 4.6 | No | No | No | |
| Claude Sonnet 4.6 Vertex | No | No | No |
Other GitLab Duo features
| Model | Vulnerability Explanation | Vulnerability Resolution | GitLab Duo for CLI | Discussion Summary |
|---|---|---|---|---|
| Claude Haiku 3 | No | No | ||
| Claude Haiku 4.5 | No | No | ||
| Claude Sonnet 4 | ||||
| Claude Sonnet 4 Vertex | ||||
| Claude Sonnet 4.5 | ||||
| Claude Sonnet 4.5 Vertex |
Select a model for a feature
- Offering: GitLab.com
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:
- You have the Owner role for the group.
- The group that you select models for is a top-level group.
- In GitLab 18.3 or later, if you belong to multiple GitLab Duo namespaces, you must assign a default namespace.
To select a model for a feature:
- In the top bar, select Search or go to and find your group.
- In the left sidebar, select Settings > GitLab Duo.
- Select Configure features.
- For the feature you want to configure, select a model from the dropdown list.
- Optional. To apply the model to all features in the section, select Apply to all.
Selecting the right model
For many use cases, starting with a faster, more cost-effective model like Claude Haiku 4.5 or GPT-5.4 Mini can be the optimal approach. For this approach:
- Select Claude Haiku 4.5 or GPT-5.4 Mini.
- Test your use case thoroughly.
- Evaluate if performance meets your requirements.
- Upgrade only if necessary for specific capability gaps.
You can use this approach for the following:
- Exploratory or high-volume tasks
- Applications with strict latency requirements
- Cost-sensitive implementations
Troubleshooting
When selecting models other than the default, you might encounter the following issues.
Model is not available
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.
No default GitLab Duo namespace
When using a GitLab Duo feature with a selected model, you might get an error that indicates that you need to set a default GitLab Duo namespace.
This issue occurs when you belong to multiple GitLab Duo namespaces or work on a project locally that does not have a GitLab remote configured.
To resolve this, set a default GitLab Duo namespace.