{"meta":{"title":"Changing the AI model for GitHub Copilot inline suggestions","intro":"Learn how to change the default LLM for Copilot inline suggestions to a different model.","product":"GitHub Copilot","breadcrumbs":[{"href":"/en/enterprise-cloud@latest/copilot","title":"GitHub Copilot"},{"href":"/en/enterprise-cloud@latest/copilot/how-tos","title":"How-tos"},{"href":"/en/enterprise-cloud@latest/copilot/how-tos/use-ai-models","title":"Use AI models"},{"href":"/en/enterprise-cloud@latest/copilot/how-tos/use-ai-models/change-the-completion-model","title":"Change the completion model"}],"documentType":"article"},"body":"# Changing the AI model for GitHub Copilot inline suggestions\n\nLearn how to change the default LLM for Copilot inline suggestions to a different model.\n\n<div class=\"ghd-tool vscode\">\n\nThe following instructions are for VS Code. If you are using Visual Studio, or a JetBrains IDE, click the appropriate tab at the start of this article.\n\n## Prerequisites\n\nYou can switch the AI model that's used for Copilot inline suggestions if:\n\n* An alternative model is currently available\n* You are using the latest releases of VS Code with the latest version of the GitHub Copilot extension\n\n> \\[!NOTE] The list of available models will change over time. When only one inline suggestion model is available, the model picker will only show that model. Preview models and additional inline suggestion models will be added to the picker as they become available.\n\nFor more information, see [GitHub Copilot code suggestions in your IDE](/en/enterprise-cloud@latest/copilot/concepts/completions/code-suggestions#changing-the-model-used-for-inline-suggestions).\n\n## Changing the AI model for inline suggestions\n\n1. Open the command palette by pressing <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (Windows/Linux) / <kbd>Command</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (Mac).\n2. Type `change completions model` and select the \"GitHub Copilot: Change Completions Model\" command.\n3. In the dropdown menu, select the model you want to use.\n\n## Checking which model is being used\n\n1. Open the Settings editor by pressing <kbd>Ctrl</kbd>+<kbd>,</kbd> (Linux/Windows) / <kbd>Command</kbd>+<kbd>,</kbd> (Mac).\n2. Type `copilot completion` and look for the \"GitHub > Copilot: Selected Completion Model\" section.\n\n   The field in this section displays the currently selected model. If the field is empty, the default model is being used.\n\n</div>\n\n<div class=\"ghd-tool visualstudio\">\n\nThe following instructions are for Visual Studio. If you are using VS Code, or a JetBrains IDE, click the appropriate tab at the start of this article.\n\n## Prerequisites\n\nYou can switch the AI model that's used for Copilot inline suggestions if:\n\n* An alternative model is currently available\n* You are using Visual Studio 17.14 Preview 2 or later\n\n> \\[!NOTE] The list of available models will change over time. When only one inline suggestion model is available, the model picker will only show that model. Preview models and additional inline suggestion models will be added to the picker as they become available.\n\nFor more information, see [GitHub Copilot code suggestions in your IDE](/en/enterprise-cloud@latest/copilot/concepts/completions/code-suggestions#changing-the-model-used-for-inline-suggestions).\n\n## Changing the AI model for inline suggestions\n\n1. Click the **<svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon octicon-copilot\" aria-label=\"copilot\" role=\"img\"><path d=\"M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z\"></path><path d=\"M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z\"></path></svg>** icon in the top right corner.\n2. Click **Settings**, then click **Options**.\n3. Under **Copilot Completions**, use the dropdown menu to select the model you want to use.\n\n</div>\n\n<div class=\"ghd-tool jetbrains\">\n\nThe following instructions are for JetBrains IDEs. If you are using Visual Studio, or VS Code, click the appropriate tab at the start of this article.\n\n## Prerequisites\n\nYou can switch the AI model that's used for Copilot inline suggestions if:\n\n* An alternative model is currently available\n* You are using the latest release of JetBrains IDEs with the latest version of the GitHub Copilot extension\n\n> \\[!NOTE] The list of available models will change over time. When only one inline suggestion model is available, the model picker will only show that model. Preview models and additional inline suggestion models will be added to the picker as they become available.\n\nFor more information, see [GitHub Copilot code suggestions in your IDE](/en/enterprise-cloud@latest/copilot/concepts/completions/code-suggestions#changing-the-model-used-for-inline-suggestions).\n\n## Changing the AI model for inline suggestions\n\n1. In your JetBrains IDE, click the **File** menu (Windows) or the name of the application in the menu bar (macOS), then click **Settings**.\n2. In the left sidebar click **Tools**, click **GitHub Copilot**, then click **Completions**.\n3. Click the dropdown menu for **Model for completions** and select the model you want to use.\n4. Click **OK**.\n\n</div>"}