Skip to main content

AI 模型比较

在 Copilot Chat 中比较可用的 AI 模型,并为你的任务选择最佳模型。

比较 GitHub Copilot 的 AI 模型

GitHub Copilot 支持具有不同功能的多个 AI 模型。 你选择的模型会影响 Copilot Chat 和 Copilot 内联建议的响应质量和相关性。 某些模型提供较低的延迟,而另一些模型则提供更少的幻觉现象或在特定任务上表现更佳。 本指南可帮助你根据任务(而不仅仅是模型名称)选择最佳模型。

注意

  • 不同的模型根据其令牌定价以不同的费率使用 AI credits 。 有关详细信息,请参阅 GitHub Copilot 的模型和定价
  • 选择模型时选择 “自动 ”选项会自动根据模型可用性和任务复杂性为任务选择最佳模型。 如果你使用的是付费 Copilot 计划,则当你使用 “自动 ”选项时,你有资格获得模型成本的折扣。 请参阅“关于 Copilotauto model selection”。

使用下表快速查找合适的模型,请在以下部分中查看更多详细信息。

型号任务领域在(主要用例)方面表现出色其他阅读材料
GPT-5 miniGeneral-purpose coding and writingFast, accurate code completions and explanationsGPT-5 mini model card
GPT-5.3-CodexAgentic software developmentAgentic tasksGPT-5.3-Codex model card
GPT-5.4Deep reasoning and debuggingMulti-step problem solving and architecture-level code analysisGPT-5.4 model card
GPT-5.4 miniAgentic software developmentCodebase exploration and is especially effective when using grep-style toolsGPT-5.4 mini model card
GPT-5.5Deep reasoning and debuggingMulti-step problem solving and architecture-level code analysisGPT-5.5 model card
GPT-5.6 LunaFast help with simple or repetitive tasksQuick, cost-efficient responses for smaller, faster coding tasksGPT-5.6 model card
GPT-5.6 SolDeep reasoning and debuggingComplex reasoning over large codebases and long-running agentic workGPT-5.6 model card
GPT-5.6 TerraGeneral-purpose coding and agent tasksBalanced everyday interactive and agentic codingGPT-5.6 model card
GPT-6 AstraLong-horizon, autonomous coding and agentic tasksLong-horizon coding tasks with continuous planning, batched diagnosis and verification, and independent result confirmationGPT-6 Astra model card
Claude Fable 5Long-horizon, autonomous coding and knowledge-workFirst-attempt correctness through upfront reasoning, aggressive parallel tool batching, and proactive verification of pre-existing test state before debuggingClaude Fable 5 model card
Claude Fable 5.1Long-horizon, autonomous coding and knowledge-workSubstantial, long-running coding tasks, including deep codebase research, feature development, and complex agentic workflowsClaude Fable 5.1 model card
Claude Haiku 4.5Fast help with simple or repetitive tasksFast, reliable answers to lightweight coding questionsClaude Haiku 4.5 model card
Claude Opus 4.7Deep reasoning and debuggingComplex problem-solving challenges, sophisticated reasoningClaude Opus 4.7 model card
Claude Opus 4.8Deep reasoning and debuggingComplex problem-solving challenges, sophisticated reasoningClaude Opus 4.8 model card
Claude Opus 4.8 (fast mode) (preview)Deep reasoning and debuggingComplex problem-solving challenges, sophisticated reasoningClaude Opus 4.8 model card
Claude Opus 5Deep reasoning and debuggingComplex problem-solving challenges, sophisticated reasoningClaude Opus 5 model card
Claude Sonnet 4.6General-purpose coding and agent tasksComplex problem-solving challenges, sophisticated reasoningClaude Sonnet 4.6 model card
Claude Sonnet 5General-purpose coding and agent tasksComplex problem-solving challenges, sophisticated reasoningClaude Sonnet 5 model card
Gemini 3.5 FlashFast help with simple or repetitive tasksFast, reliable answers to lightweight coding questionsGemini 3.5 Flash model card
Gemini 3.6 FlashFast help with simple or repetitive tasksFast, reliable answers to lightweight coding questionsGemini 3.6 Flash model card
Gemini 3.7 FlashFast help with simple or repetitive tasksFast, reliable answers to lightweight coding questionsGemini 3.7 Flash model card
Gemini 3.8 FlashFast help with simple or repetitive tasksFast, reliable answers to lightweight coding questionsGemini 3.8 Flash model card
MAI-Code-1.1-Flash1General-purpose coding and writing, image understandingFast code completions and explanations, instruction following, tool useMAI-Code-1.1-Flash model card
Grok 4.5General-purpose coding and agent tasksComplex problem-solving challenges, sophisticated reasoningGrok 4.5 model card
Grok 4.6General-purpose coding and agent tasksComplex problem-solving challenges, sophisticated reasoningGrok 4.6 model card
Qwen2.5General-purpose coding and writingCode generation, reasoning, and code repair / debuggingQwen2.5 model card
Kimi K2.7 CodeGeneral-purpose coding and agent tasksFast, reliable answers to lightweight coding questionsKimi K2.7 Code model card
Kimi K32Agentic coding and long-context workMulti-step agent tasks across large codebasesKimi K3 model card

任务:常规用途的编码和编写

将这些模型用于需要平衡质量、速度和成本效益的常见开发任务。 如果没有特定要求,这些模型是不错的默认方案。

型号为什么它很合适
GPT-5.3-Codex在复杂的工程任务(如功能、测试、调试、重构和评审)中,无需冗长指令即可交付更高质量的代码。
GPT-5 mini这是适合大多数编码和编写任务的可靠默认方案。 快速、准确且跨语言和框架工作良好。
GPT-5.6 Terra适合日常交互式编码和代理式编码的均衡全能之选。

何时使用这些模型

如果要执行以下操作,请使用这些模型之一:

  • 编写或查看函数、短文件或代码变更。
  • 生成文档、注释或摘要。
  • 快速解释错误或意外行为。
  • 在非英语编程环境中工作。

何时使用其他模型

如果要处理复杂的重构、体系结构决策或多步骤逻辑,请考虑使用深层推理和调试中的模型。 若要完成更快、更简单的任务(如重复编辑或一次性代码建议),请参阅快速帮助完成简单或重复的任务

任务:快速帮助完成简单或重复的任务

这些模型针对速度和响应能力进行了优化。 它们非常适合快速编辑、实用工具函数、语法帮助和轻型原型制作。 你将获得快速答案,而无需等待不必要的深度或较长的推理链。

型号为什么它很合适
GPT-5.6 Luna轻量级、经济高效的选项,用于更小、更快的任务。 GPT-5.6 系列中的最低成本模型。
Claude Haiku 4.5平衡快速响应与高质量输出。 非常适合小型任务和轻型代码解释。

何时使用这些模型

如果要执行以下操作,请使用这些模型之一:

  • 编写或编辑小型函数或实用工具代码。
  • 询问快速语法或语言问题。
  • 以最少的设置建立创意原型。
  • 获取有关简单提示或编辑的快速反馈。

何时使用其他模型

如果要处理复杂的重构、体系结构决策或多步骤逻辑,请参阅深层推理和调试。 有关需要更强常规用途的推理或更结构化输出的任务,请参阅常规用途的编码和编写

任务:深层推理和调试

这些模型专为需要分步推理、复杂决策或高上下文感知的任务而设计。 当你需要结构化分析、深思熟虑的代码生成或多文件理解时,它们就很合适。

型号为什么它很合适
GPT-5 mini提供深度推理和调试能力,与 GPT-5 相比,响应速度更快,资源使用率更低。 非常适合交互式会话和分步代码分析。
GPT-5.5擅长复杂的推理、代码分析和技术决策。
GPT-5.6 SolGPT-5.6 系列的最高推理上限。 最适合用于对大型代码库和要求苛刻且长时间运行的代理工作进行复杂的推理。
Claude Sonnet 4.6在压力下可靠完成和更智能的推理。
Claude Opus 4.7Anthropic 的最强模型。 擅长对大型复杂代码库进行深度推理。

何时使用这些模型

如果要执行以下操作,请使用这些模型之一:

  • 在跨多个文件的上下文中调试复杂问题。
  • 重构大型或互连的代码库。
  • 跨层规划功能或架构。
  • 在库、模式或工作流之间进行权衡。
  • 分析日志、性能数据或系统行为。

何时使用其他模型

若要完成快速迭代或轻型任务,请参阅快速帮助完成简单或重复的任务。 有关常规开发工作流或内容生成,请参阅常规用途的编码和编写

任务:使用视觉对象(图表、屏幕截图)

如果要询问有关屏幕截图、图表、UI 组件或其他视觉输入的问题,请使用这些模型。 这些模型支持多模态输入,非常适合前端工作或视觉对象调试。

型号为什么它很合适
GPT-5 mini这是适合大多数编码和编写任务的可靠默认方案。 快速、准确,并支持视觉推理任务的多模式输入。 在不同的语言和框架中都能良好运作。
Claude Sonnet 4.6在压力下可靠完成和更智能的推理。

何时使用这些模型

如果要执行以下操作,请使用这些模型之一:

  • 询问有关图表、屏幕截图或 UI 组件的问题。
  • 获取有关视觉草稿或工作流的反馈。
  • 通过视觉上下文了解前端行为。

提示

如果在不支持图像输入(如代码编辑器)的上下文中使用模型,则看不到视觉推理的优势。 可以使用 MCP 服务器间接访问视觉输入。 请参阅“使用 MCP(模型上下文协议)服务器扩展 GitHub Copilot 对话助手”。

何时使用其他模型

如果任务涉及深层推理或大规模重构,请考虑使用深层推理和调试中的模型。 若要完成纯文本任务或更简单的代码编辑,请参阅快速帮助完成简单或重复的任务

模型特定注意事项

某些模型具有一些行为特点、限制或安全防护机制,在为某项任务选择这些模型之前,先了解这些内容会很有帮助。

Kimi K3

Kimi K3 专为长期上下文、多步骤编码和代理工作流而设计。 微调模型变体可能作为 Kimi K3(GitHub)产品/服务的一部分,仅包含在个人套餐中。 Copilot Business 或 Copilot Enterprise 计划不包含微调变体。 在预发布测试中,该模型在某些高风险提示上表现出了较高的风险,在拒绝涉及敏感主题的请求时与其他一些模型相比不太一致。 这些行为可能反映模型在安全后训练和对齐方面的差异。 我们部署了额外的安全措施 GitHub Copilot ,以帮助缓解已确定的风险。 与任何模型一样,企业应根据特定的用例和要求评估模型功能、限制和安全措施。

后续步骤

选择正确的模型可帮助你充分利用 Copilot。 如果不确定要使用哪种模型,请从常规用途选项开始 GPT-5 mini,然后根据需求进行调整。

Footnotes

  1. MAI models are continuously improving models. Performance and behavior may evolve over time as new checkpoints are released.

  2. For important information about Kimi K3 behavior and safeguards, see Model-specific considerations.