OpenAI CodexOpenAI Codex describes two AI-assisted software development tools released by OpenAI. They translate natural language into code, a technology described by artificial intelligence researchers as an AI agent.[1] On August 10, 2021, OpenAI announced Codex, a code autocompletion tool available in select IDEs such as Visual Studio Code and Neovim. It was a modified, production version of GPT-3,[2] finetuned on gigabytes of source code in a dozen programming languages. It was the original model powering GitHub Copilot.[3] On May 16, 2025, OpenAI announced the launch of a research preview of a distinct tool with a similar purpose, also named Codex, based on a finetuned version of OpenAI o3.[4] It is a software agent that performs tasks in computer programming, including writing features, answering codebase questions, running tests, and proposing PRs for review. It has two versions, one running in a virtual machine in the cloud, and one where the agent runs in the cloud, but performs actions on a local machine connected via API (similar in operation to Cursor or Claude Code). It is available to ChatGPT Pro, Enterprise, Team, and Plus users.[5][6] CapabilitiesBased on GPT-3, a neural network trained on text, Codex was additionally trained on 159 gigabytes of Python code from 54 million GitHub repositories.[7][8] A typical use case of Codex is for a user to type a comment, such as " OpenAI claims that Codex can create code in over a dozen programming languages, including Go, JavaScript, Perl, PHP, Ruby, Shell, Swift, and TypeScript, though it is most effective in Python.[3] According to VentureBeat, demonstrations uploaded by OpenAI showed impressive coreference resolution capabilities. The demonstrators were able to create a browser game in JavaScript and generate data science charts using matplotlib.[11] OpenAI showed that Codex can interface with services and apps such as Mailchimp, Microsoft Word, Spotify, and Google Calendar.[11][14] The Codex-1 model is designed to identify and refuse requests related to malware, exploits, or content that violates usage policies, citing the relevant policy clauses. It operates within a restricted container environment that lacks outbound internet access and includes only whitelisted dependencies, thereby minimizing the potential impact of any malicious code.[15] IssuesOpenAI demonstrations showcased flaws such as inefficient code and one-off quirks in code samples.[11] In an interview with The Verge, OpenAI chief technology officer Greg Brockman said that "sometimes [Codex] doesn't quite know exactly what you're asking" and that it can require some trial and error.[14] OpenAI researchers found that Codex struggles with multi-step prompts, often failing or yielding counter-intuitive behavior. Additionally, they brought up several safety issues, such as over-reliance by novice programmers, biases based on the training data, and security impacts due to vulnerable code.[13] VentureBeat stated that because Codex [16]is trained on public data, it could be vulnerable to "data poisoning" via intentional uploads of malicious code.[11] According to a study by researchers from New York University, approximately 40% of code generated by GitHub Copilot (which uses Codex) in scenarios relevant to high-risk CWEs included glitches or other exploitable design flaws.[17] CopyrightThe Free Software Foundation expressed concerns that code snippets generated by Copilot and Codex could violate copyright, in particular the condition of the GPL that requires derivative works to be licensed under equivalent terms.[18] Issues they raised include whether training on public repositories falls into fair use or not, how developers could discover infringing generated code, whether trained machine learning models could be considered modifiable source code or a compilation of the training data, and if machine learning models could themselves be copyrighted and by whom.[18][19] An internal GitHub study found that approximately 0.1% of generated code contained direct copies from the training data. In one example the model outputted the training data code implementing the fast inverse square root algorithm, including comments and an incorrect copyright notice.[9] In response, OpenAI stated that "legal uncertainty on the copyright implications of training AI systems imposes substantial costs on AI developers and so should be authoritatively resolved."[9] The copyright issues with Codex have been compared to the Authors Guild, Inc. v. Google, Inc. court case, in which judges ruled that Google Books's use of text snippets from millions of scanned books constituted fair use.[9][20] However, use of text snippets from books provides for a reliable reference of the copyright owner, as opposed to compiled works used for the training algorithm data where the final output is made without any such reference. References
|
Portal di Ensiklopedia Dunia