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 パブリック プレビュー and subject to change. The GitHub プレリリース ライセンス条項 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:

  • The first time you choose to use Gemini 2.0 Flash with Copilot Chat in Visual Studio Code, or in the immersive view of Copilot Chat, you will be prompted to allow access to the model.

    Clicking Allow enables you to use Gemini 2.0 Flash and updates the policy in your personal settings on GitHub.

  • You can enable the model directly in your personal settings on the GitHub website. See 個人のサブスクライバーとしての Copilot ポリシーの管理.

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 organization 内での 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.