Skip to main content

更改 GitHub Copilot 编码代理的 AI 模型

在受支持的入口点中,使用 Copilot编程助理 启动任务时,你可以选择使用的模型。

谁可以使用此功能?

Copilot编程助理 可用于 GitHub Copilot Pro、GitHub Copilot Pro+、GitHub Copilot业务 和 GitHub Copilot Enterprise 计划。 该代理在 GitHub 上存储的所有仓库中均可用,但以下情况除外:由 托管用户帐户 拥有的仓库,以及已显式禁用该代理的仓库。
Sign up for Copilot

在本文中

注意

For an overview of Copilot coding agent, see About GitHub Copilot coding agent.

Introduction

In supported entrypoints, you can select the model used by Copilot coding agent.

You may find that different models perform better, or provide more useful responses, depending on the type of tasks you give Copilot.

注意

Model selection for Copilot coding agent is only supported when assigning an issue to Copilot on GitHub.com, when mentioning @copilot in a pull request comment on GitHub.com, or when starting a task from the agents tab, agents panel, GitHub Mobile or the Raycast launcher. Where a model picker is not available, Auto will be used automatically. See Asking GitHub Copilot to create a pull request.

Supported models

The following options are currently available:

  • Auto
  • Claude Sonnet 4.5
  • Claude Opus 4.5
  • Claude Opus 4.6
  • GPT-5.1-Codex-Max
  • GPT-5.2-Codex

注意

If you select Auto, Copilot auto model selection will select the best model based on availability and to help reduce rate limiting. See About Copilot auto model selection.