The GitHub Blog 09月04日
GitHub Copilot模型演进与多模型架构
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

GitHub Copilot自2021年推出以来经历了显著进化,从单一模型Codex发展为支持多种先进AI模型的多模型架构。文章探讨了Copilot如何通过集成不同模型提升开发效率,如默认使用GPT-4.1进行聊天、代理模式和代码补全,同时提供Pro+、商业和企业版本中的多种模型选择,包括Anthropic的Claude系列、OpenAI的GPT系列和Google的Gemini系列。这些模型在速度、推理深度和多模态能力方面各有侧重,让开发者可根据任务需求灵活选择,实现更高效、更智能的开发体验。

💡 GitHub Copilot从2021年的单一模型Codex进化为多模型架构,支持多种先进AI模型,包括Anthropic的Claude系列、OpenAI的GPT系列和Google的Gemini系列,以适应不同开发任务的需求。

🚀 Copilot默认使用GPT-4.1进行聊天、代理模式和代码补全,该模型在速度、推理深度和多模态支持方面表现出色,为开发者提供高效的基础智能支持。

🛠️ 在Pro+、商业和企业版本中,开发者可通过模型选择器(model picker)选择最适合其任务的模型,如o4-mini(速度优先)、GPT-5(复杂推理)和Claude Opus 4.1(高级推理),实现个性化开发体验。

🤝 Copilot的多模型架构赋予开发者自主选择权,让他们根据偏好(速度、精度或创造力)定制开发流程,从而提升生产力并减少重复性工作。

🌐 Copilot的代理工作流(agentic workflows)使其能深入理解开发者代码库的上下文,尊重分支保护,无缝融入现有代码审查流程,并通过自动化任务(如评论分类、漏洞修复)帮助开发者专注于核心工作。

Since its initial launch in 2021, GitHub Copilot has evolved a lot — and so have the AI models that power it. 

When we first announced GitHub Copilot as a technical preview, OpenAI hadn’t yet launched ChatGPT. Today, AI dominates headlines and workflows alike. Amid this rapid change, our focus has remained the same: help developers stay in flow and get more done.

Amidst all of that, we have been focused on continually improving GitHub Copilot with developers in mind. That’s meant re-evaluating what models power it, and building agentic workflows into its core experience, too

In this article, we’ll look at the models that drive different parts of GitHub Copilot and the powerful infrastructure that supports Copilot’s agentic capabilities. We’ll also discuss how model selection works across various features, like agent mode, code completions, and chat. 

Now, let’s take a look under the hood. ✨

From Codex to multi-model: The evolution of GitHub Copilot

When GitHub Copilot launched in 2021, it was powered by a single model: Codex, a descendant of GPT-3. 

At the time, Codex was a revelation. Capable of understanding and generating code in the IDE with surprising fluency, Codex helped prove that AI could be a valuable tool for developers and showed a future where AI could potentially become a true coding companion.

Since then, Copilot has transitioned away from Codex and now defaults to the latest frontier models, while also giving developers access to their choice of advanced models.

Where it once lived firmly in the IDE as an extension to help developers with autocomplete and code generation, Copilot has evolved to become part of the GitHub platform available across developer workflows.

Copilot can answer questions, generate tests, debug code, get assigned an issue, generate a pull request, assist with code reviews, analyze codebases, and even fix security vulnerabilities, among other things.

Throughout all of these changes, we have focused on helping developers accomplish more, do less boilerplate work, stay in the flow, focus on the big picture, and ship higher-quality code faster.

Why offer multiple models?

Moving Copilot to a multi-model architecture wasn’t just about keeping up with AI advancements. It was about allowing developers to choose their preferred LLM for the task at hand, giving them flexibility in a rapidly changing environment.

Different models excel at different tasks, and by integrating a variety of them, GitHub Copilot can now deliver more tailored, powerful experiences through features like these:

Each option offers different trade-offs between speed, reasoning depth, and multimodal capabilities.

Why developer choice matters in agentic workflows

Because Copilot supports multiple models, developers have the autonomy to choose exactly how they build, whether they’re prioritizing speed, precision, or creativity. This flexibility lets developers tailor their experience based on their preferences — and these developer experience (DevEx) improvements translate into real productivity gains. 

Copilot’s agentic capabilities mean that:

Agentic workflows help reduce complexity and prioritize developer choice at every step, leading to higher-quality code and fewer to-dos. This empowers developers to work the way they want: faster, safer, and with more confidence.

Delivering real-world impact through better DevEx

As AI continues to evolve, its role in shaping the developer experience will only grow. From reducing context switching to automating repetitive tasks, AI tools like Copilot are increasingly becoming a “second brain” for developers.

Having a choice of models lets developers customize exactly how they work. This lets them build with confidence, drive even more impact, and find greater satisfaction in their work.

How model selection works in Copilot

GitHub Copilot is more than just one single AI model. It’s a dynamic platform that uses intelligence to match the right model with the right task. This flexibility is central to delivering a seamless DevEx, and it’s guided by a deep understanding of how developers work, what they need, and when they need it.

Choosing the right model for the job

Development tasks vary in complexity and context. That’s why GitHub Copilot empowers users to select the model that best suits their needs, especially in Chat and agent mode.

Whether you’re optimizing for speed, reasoning depth, or multimodal input, there’s a model for you:

ModelBest for:
o4-mini (OpenAI)Speed, low-latency completions
GPT-4.1 (OpenAI)Balanced performance and multimodal support
GPT-5 mini (OpenAI)Lightweight reasoning
GPT-5 (OpenAI)High-end reasoning for complex tasks
o3 (OpenAI)Advanced planning and multi-step reasoning
Claude Sonnet 3.5Reliable, everyday coding tasks
Claude Sonnet 3.7Deeper reasoning for large codebases
Claude Sonnet 3.7 ThinkingLong-horizon, structured problem-solving
Claude Sonnet 4Higher reasoning depth
Claude Opus 4Premium reasoning power
Claude Opus 4.1Most advanced Anthropic option
Gemini 2.5 ProAdvanced multimodal reasoning

Take this with you

As the world of AI keeps evolving, so will the models that power GitHub Copilot. We’re committed to continuously refining and updating our AI infrastructure to provide you with the best possible developer experience. 

We encourage you to explore all the different models available within Copilot and discover how they can enhance your coding journey. Happy building! 

Interested in trying GitHub Copilot? Read the Docs to learn more about Copilot features or get started today.

The post Under the hood: Exploring the AI models powering GitHub Copilot appeared first on The GitHub Blog.

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

GitHub Copilot AI模型 多模型架构 开发者工具 代理工作流 OpenAI Anthropic Google Gemini
相关文章