doc/administration/gitlab_duo/model_selection.md
{{< details >}}
{{< /details >}}
Every GitLab Duo feature has a default large language model (LLM) chosen by GitLab.
GitLab can update this default model to optimize feature performance. Therefore, a feature's model might change without you taking any action.
If you do not want to use the default model for each feature, or have specific requirements, you can choose from an array of other available supported models.
If you select a specific model for a feature, the feature uses that model until you select another.
{{< history >}}
instance_level_model_selection. Enabled by default.instance_level_model_selection removed in GitLab 18.6.{{< /history >}}
You can select a default model for a feature and that default applies to the entire instance. If you do not select a specific model, all GitLab Duo features use the default GitLab model.
[!note] For GitLab Self-Managed instances with an offline license, to change the model for features in the GitLab Duo Agent Platform, you must have the GitLab Duo Agent Platform Self-Hosted add-on.
Prerequisites:
To select a model for a feature:
{{< history >}}
{{< /history >}}
In the upper-right corner, select Admin.
In the left sidebar, select GitLab Duo.
On Configure AI features, go to the GitLab Duo Agentic Chat section.
Select a model from the dropdown list to set as the default model. If you plan to restrict access to other models, select a GitLab-managed model as the default.
Optional. To restrict what other models users can select for Agentic Chat:
[!note] To restrict Agentic Chat to specific models, you must select a GitLab-managed model as the default model. If you do not restrict Agentic Chat to specific models, users can choose from all GitLab-managed models.