跳到正文
OpenAI News·· 2022-03-15精選AI 評分63

OpenAI 發佈 GPT-3 和 Codex 新版本,支援編輯及插入既有文本

New GPT-3 capabilities: Edit & insert

AI 導讀

OpenAI 發佈 GPT-3 和 Codex 新版本,讓模型可以編輯或插入既有文本內容,而非只接續文本。

推薦理由

新版本把 GPT-3 和 Codex 的操作從接續既有文本擴展到編輯或插入內容,清楚呈現兩種文本處理方式的差異。

正文 · 原文

Insert is particularly useful for writing code. In fact, Codex was our original motivation for developing this capability, since in software development we typically add code to the middle of an existing file where code is present before and after the completion. In the example above, the model successfully completes the missing function prune, while connecting to code already written. We also add a docstring and missing imports, which is not possible without knowing the code that comes after. In GitHub Copilot, Insert is currently being piloted with early promising results.

The insert capability is available in the API today in beta, as part of the completions endpoint⁠(opens in a new window) and via a new interface in Playground⁠(opens in a new window). The capability can be used with the latest versions of GPT‑3 and Codex, text-davinci-002 and code-davinci-002. Pricing⁠ is the same as previous versions of Davinci.

來源:OpenAI News · openai.com