Skip to main content

Using Gemini 2.0 Flash in GitHub Copilot

Learn how to enable Gemini 2.0 Flash for yourself or your organization.

Note

Gemini 2.0 Flash is in public preview and subject to change. The Условия лицензии GitHub Pre-release apply to your use of this product.

About Gemini 2.0 Flash in GitHub Copilot

Gemini 2.0 Flash is a large language model (LLM) that you can use as an alternative to the default model used by Copilot Chat. Gemini 2.0 Flash is a responsive LLM that can empower you to build apps faster and more easily, so you can focus on great experiences for your users. For information about the capabilities of Gemini 2.0 Flash, see the Google for developers blog and the Google Cloud documentation. For details of Google's data handling policy, see Generative AI and data governance on the Google website.

Gemini 2.0 Flash is currently available in:

  • Copilot Chat in Visual Studio Code
  • Copilot Chat in Visual Studio 2022 version 17.12 or later
  • Immersive mode in Copilot Chat in GitHub

GitHub Copilot uses Gemini 2.0 Flash hosted on Google Cloud Platform (GCP). When using Gemini 2.0 Flash, prompts and metadata are sent to GCP, which makes the following data commitment: Gemini doesn't use your prompts, or its responses, as data to train its models.

When using Gemini 2.0 Flash, input prompts and output completions continue to run through GitHub Copilot's content filters for public code matching, when applied, along with those for harmful, offensive, or off-topic content.

Configuring access

You must enable access to Gemini 2.0 Flash before you can use the model.

Setup for individual use

If you have a Copilot Free or Copilot Pro subscription, you can enable Gemini 2.0 Flash in two ways:

Setup for organization use

As an organization owner, you can enable or disable Gemini 2.0 Flash for everyone who has been assigned a Copilot Business seat through your organization. See Управление политиками для Copilot в организации.

Using Gemini 2.0 Flash

For details of how to change the model that Copilot Chat uses, see Changing the AI model for Copilot Chat.