GitLab Duo (Classic) AI models

  • Tier: Premium, Ultimate
  • Add-on: GitLab Duo Core, Pro or Enterprise
  • Offering: GitLab.com, GitLab Self-Managed, GitLab Dedicated

Every GitLab Duo (Classic) 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.

FeatureModel
Code Suggestions
Code GenerationClaude Sonnet 4 Vertex
Code CompletionCodestral 25.01 Fireworks
GitLab Duo Chat
General ChatClaude Sonnet 4.5 Vertex
Code ExplanationClaude Sonnet 4
Test GenerationClaude Sonnet 4.5 Vertex
Refactor CodeClaude Sonnet 4.5 Vertex
Fix CodeClaude Sonnet 4.5 Vertex
Root Cause AnalysisClaude Sonnet 4 Vertex
GitLab Duo for merge requests
Merge Commit Message GenerationClaude Sonnet 4 Vertex
Merge Request SummaryClaude Sonnet 4 Vertex
Code Review SummaryClaude Sonnet 4 Vertex
Code ReviewClaude Sonnet 4 Vertex
Other GitLab Duo features
Vulnerability ExplanationClaude Sonnet 4.5 Vertex
Vulnerability ResolutionClaude Sonnet 4.5
Discussion SummaryClaude Sonnet 4.5 Vertex
GitLab Duo for CLIClaude Haiku 4.5

Supported models

The following tables list the models you can select for each feature.

Code Suggestions

ModelCode GenerationCode Completion
Claude Sonnet 4check-smcheck-sm
Claude Sonnet 4 Vertexcheck-smcheck-sm
Claude Sonnet 4.5check-smcheck-sm
Codestral 25.01 FireworksNocheck-sm
Codestral 25.01 VertexNocheck-sm
Codestral 25.08 FireworksNocheck-sm
Codestral 25.08 VertexNocheck-sm
Gemini 2.5 Flashcheck-smNo

GitLab Duo Chat (Classic)

ModelGeneral ChatCode ExplanationTest GenerationRefactor CodeFix CodeRoot Cause Analysis
Claude Haiku 4.5check-smNoNo
Claude Sonnet 3NoNocheck-sm
Claude Sonnet 4check-smcheck-smcheck-smcheck-smcheck-smcheck-sm
Claude Sonnet 4 Vertexcheck-smcheck-smcheck-smcheck-smcheck-smcheck-sm
Claude Sonnet 4.5check-smcheck-smcheck-smcheck-smcheck-smcheck-sm
Claude Sonnet 4.5 Vertexcheck-smcheck-smcheck-smcheck-smcheck-sm

GitLab Duo for merge requests

ModelMerge Commit Message GenerationMerge Request SummaryCode Review SummaryCode Review
Claude Sonnet 4check-smcheck-smcheck-smcheck-sm
Claude Sonnet 4 Vertexcheck-smcheck-smcheck-smcheck-sm
Claude Sonnet 4.5check-smcheck-smcheck-smcheck-sm

Other GitLab Duo features

ModelVulnerability ExplanationVulnerability ResolutionGitLab Duo for CLIDiscussion Summary
Claude Haiku 3check-smNocheck-smNo
Claude Haiku 4.5Nocheck-smNo
Claude Sonnet 4check-smcheck-smcheck-sm
Claude Sonnet 4 Vertexcheck-smcheck-smcheck-sm
Claude Sonnet 4.5check-smcheck-smcheck-smcheck-sm
Claude Sonnet 4.5 Vertexcheck-smcheck-sm

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:

  1. On the top bar, select Search or go to and find your group.
  2. Select Settings > GitLab Duo.
  3. Select Configure features.
  4. For the feature you want to configure, select a model from the dropdown list.
  5. Optional. To apply the model to all features in the section, select Apply to all.

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 states that you have not selected a default GitLab Duo namespace. For example, on:

  • GitLab Duo Code Suggestions, you might get Error 422: No default Duo group found. Select a default Duo group in your user preferences and try again.
  • GitLab Duo Chat, you might get 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.