GitHub Copilot

![]() | 此條目可参照英語維基百科相應條目来扩充。 (2022年8月4日) |
![]() | |
開發者 | GitHub、OpenAI |
---|---|
当前版本 | 1.7.4421 |
操作系统 | Microsoft Windows、Linux、MacOS、Web |
网站 | copilot.github.com |
GitHub Copilot是GitHub和OpenAI合作开发的一个人工智能工具,用户在使用Visual Studio Code、Microsoft Visual Studio、Vim或JetBrains集成开发环境時可以通過GitHub Copilot自动补全代码[1]。GitHub于2021年6月29日宣布该软件[2],目前处于技术预览阶段,主要面向Python、JavaScript、TypeScript、Ruby和Go等编程语言[2][3]。
历史
2021年6月29日,GitHub 宣布 GitHub Copilot 在 Visual Studio Code 开发环境中进行技术预览。[1][4]
2021年10月26日,GitHub Copilot 作为插件在 JetBrains 市场上发布。[5]
2021年10月27日,GitHub 发布了 GitHub Copilot Neovim 插件作为公共存储库。[6]
2022年3月9日,Github官方宣布Copilot适用于Visual Studio 2022 IDE。[7]
2022年6月21日,GitHub 正式宣布 Copilot 退出“技术预览版”,并作为基于订阅的服务提供给个人开发者。[8]此外,GitHub 提到 Copilot 将继续“对经过验证的学生和流行开源项目的维护者免费”,并且“将在今年(2022 年)晚些时候提供给公司”。
特性
GitHub Copilot 由 OpenAI Codex 提供支持,OpenAI Codex 是由人工智能研究实验室 OpenAI 创建的人工智能模型。[9]OpenAI Codex 是 GPT-3(生成型已训练变换模型 3) 的修改后生产版本,GPT-3 是一种使用深度学习生成类人类文本的语言模型。[10]例如,当给出一个自然语言的程序问题时,Codex能够产生解法代码。[11]它也可以用英语描述输入代码和在不同程序语言之间翻译代码。[11]Codex的GPT-3仅授权给 GitHub 的母公司微软。[12]
Copilot的OpenAI Codex接受了一系列英语语言、公共 GitHub 存储库和其他公开可用源代码的训练。[3]这包括来自 5400 万个公共 GitHub 存储库的 159 GB Python 代码的过滤数据集。[13]
根据它的网站,GitHub Copilot包括协助程序员的功能,如从代码注释到可运行代码的转换,和自动补全代码块、重复的代码、以及整个方法或函数。[3][14]GitHub 报告称,Copilot 的自动完成功能大约有一半时间是准确的; 例如,对于一些 Python 函数头代码,Copilot 在第一次尝试时有 43% 的时间正确地自动完成了函数体代码的其余部分,而在十次尝试后有 57% 的时间正确地自动完成了函数体代码的其余部分。[3]
GitHub 表示,Copilot 的功能允许程序员通过减少用户阅读[[软件文档|软件文档]]的时间来导航不熟悉的编码框架和语言。[3]
参考文献
- ^ 1.0 1.1 Gershgorn, Dave. GitHub and OpenAI launch a new AI tool that generates its own code. The Verge. 2021-06-29 [2021-07-06]. (原始内容存档于2021-07-07).
- ^ 2.0 2.1 GitHub’s automatic coding tool rests on untested legal ground. The Verge. 2021-07-07 [2021-07-11]. (原始内容存档于2021-07-11).
- ^ 3.0 3.1 3.2 3.3 3.4 GitHub Copilot · Your AI pair programmer. GitHub Copilot. [7 April 2022].
- ^ Introducing GitHub Copilot: your AI pair programmer. The GitHub Blog. 2021-06-29 [2022-04-07] (美国英语).
- ^ GitHub Copilot - IntelliJ IDEs Plugin | Marketplace. JetBrains Marketplace. [2022-04-07].
- ^ Copilot.vim, GitHub, 7 April 2022 [7 April 2022]
- ^ GitHub Copilot now available for Visual Studio 2022. The GitHub Blog. 29 March 2022 [7 April 2022] (美国英语).
- ^ GitHub Copilot is generally available to all developers. The GitHub Blog. 21 June 2022 [21 June 2022] (美国英语).
- ^ Krill, Paul. OpenAI offers API for GitHub Copilot AI model. InfoWorld. 12 August 2021 [7 April 2022] (英语).
- ^ OpenAI Releases GPT-3, The Largest Model So Far. Analytics India Magazine. 3 June 2020 [7 April 2022] (美国英语).
- ^ 11.0 11.1 Finnie-Ansley, James; Denny, Paul; Becker, Brett A.; Luxton-Reilly, Andrew; Prather, James. The Robots Are Coming: Exploring the Implications of OpenAI Codex on Introductory Programming. Australasian Computing Education Conference. ACE '22 (New York, NY, USA: Association for Computing Machinery). 14 February 2022: 10–19. ISBN 978-1-4503-9643-1. S2CID 246681316. doi:10.1145/3511861.3511863.
- ^ OpenAI is giving Microsoft exclusive access to its GPT-3 language model. MIT Technology Review. [7 April 2022] (英语).
- ^ OpenAI Announces 12 Billion Parameter Code-Generation AI Codex. InfoQ. [7 April 2022] (英语).
- ^ Sobania, Dominik; Schweim, Dirk; Rothlauf, Franz. A Comprehensive Survey on Program Synthesis with Evolutionary Algorithms. IEEE Transactions on Evolutionary Computation. 2022: 1. ISSN 1941-0026. S2CID 247721793. doi:10.1109/TEVC.2022.3162324.
![]() | 这是一篇與软件相關的小作品。您可以通过编辑或修订扩充其内容。 |