Skip to main content

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

GitHub Copilot Pro 和 GitHub Copilot Pro+ 用户可以选择 Copilot 编码智能体使用的模型。

谁可以使用此功能?

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

注意

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

Introduction

GitHub Copilot Pro and GitHub Copilot Pro+ users can select the model used by Copilot coding agent.

注意

Model selection for Copilot coding agent is only supported when starting a task from the agents tab or panel, assigning an issue to Copilot on GitHub.com and from the Raycast launcher. See Asking GitHub Copilot to create a pull request.

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

Support for selecting a model is coming soon for GitHub Copilot Business and GitHub Copilot Enterprise users. Until then, for these users, Copilot coding agent will use Claude Sonnet 4.5. GitHub reserves the right to change the model used at any time.

Supported models

The following options are currently available:

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

注意

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.