跳转到内容

GitHub Copilot

本页使用了标题或全文手工转换
维基百科,自由的百科全书

这是本页的一个历史版本,由Renamed user 5df18e49b15882112ccb6e8fdaa4b1cf留言 | 贡献2023年3月21日 (二) 19:11 争议:​ 删除该段落,来源有问题)编辑。这可能和当前版本存在着巨大的差异。

GitHub Copilot
開發者GitHubOpenAI
当前版本1.7.4421
操作系统Microsoft WindowsLinuxMacOS、Web
网站copilot.github.com

GitHub CopilotGitHubOpenAI合作开发的一个人工智能工具,用户在使用Visual Studio CodeMicrosoft Visual StudioVimJetBrains集成开发环境時可以通過GitHub Copilot自动补全代码[1]。GitHub于2021年6月29日對開公開该软件[2],GitHub Copilot於技术预览阶段主要面向PythonJavaScriptTypeScriptRubyGo等编程语言[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. ^ 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. ^ 3.0 3.1 3.2 3.3 3.4 GitHub Copilot · Your AI pair programmer. GitHub Copilot. [7 April 2022]. (原始内容存档于2022-06-19). 
  3. ^ Introducing GitHub Copilot: your AI pair programmer. The GitHub Blog. 2021-06-29 [2022-04-07]. (原始内容存档于2022-06-21) (美国英语). 
  4. ^ GitHub Copilot - IntelliJ IDEs Plugin | Marketplace. JetBrains Marketplace. [2022-04-07]. (原始内容存档于2022-06-27). 
  5. ^ Copilot.vim, GitHub, 7 April 2022 [7 April 2022], (原始内容存档于2022-06-13) 
  6. ^ GitHub Copilot now available for Visual Studio 2022. The GitHub Blog. 29 March 2022 [7 April 2022]. (原始内容存档于2022-06-14) (美国英语). 
  7. ^ GitHub Copilot is generally available to all developers. The GitHub Blog. 21 June 2022 [21 June 2022]. (原始内容存档于2022-06-23) (美国英语). 
  8. ^ Krill, Paul. OpenAI offers API for GitHub Copilot AI model. InfoWorld. 12 August 2021 [7 April 2022]. (原始内容存档于2022-04-17) (英语). 
  9. ^ OpenAI Releases GPT-3, The Largest Model So Far. Analytics India Magazine. 3 June 2020 [7 April 2022]. (原始内容存档于2020-08-04) (美国英语). 
  10. ^ 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. 
  11. ^ OpenAI is giving Microsoft exclusive access to its GPT-3 language model. MIT Technology Review. [7 April 2022]. (原始内容存档于2021-02-05) (英语). 
  12. ^ OpenAI Announces 12 Billion Parameter Code-Generation AI Codex. InfoQ. [7 April 2022]. (原始内容存档于2022-07-09) (英语). 
  13. ^ Sobania, Dominik; Schweim, Dirk; Rothlauf, Franz. A Comprehensive Survey on Program Synthesis with Evolutionary Algorithms. IEEE Transactions on Evolutionary Computation. 2022: 1 [2022-08-04]. ISSN 1941-0026. S2CID 247721793. doi:10.1109/TEVC.2022.3162324. (原始内容存档于2022-04-01).