New GPT-3 capabilities: Edit & insert

📰 OpenAI News

GPT-3 can now edit and insert content into existing text, enabling new use cases and improving existing ones

intermediate Published 15 Mar 2022
Action Steps
  1. Explore the new edit and insert capabilities of GPT-3
  2. Read the documentation for edit and insert APIs
  3. Test the new capabilities with existing code or text
  4. Evaluate the potential use cases for the new capabilities in your project or product
Who Needs to Know This

Developers and software engineers can benefit from these new capabilities to revise existing content, such as rewriting code or refactoring text, while product managers can explore new applications for the OpenAI API

Key Insight

💡 The new edit and insert capabilities of GPT-3 unlock new use cases and improve existing ones, such as rewriting code or refactoring text

Share This
🚀 GPT-3 can now edit & insert content into existing text! #AI #GPT3

Key Takeaways

GPT-3 can now edit and insert content into existing text, enabling new use cases and improving existing ones

Full Article

# New GPT-3 capabilities: Edit & insert | OpenAI

[Skip to main content](https://openai.com/index/gpt-3-edit-insert#main)

[](https://openai.com/)

* [Research](https://openai.com/research/index/)
* Products
* [Business](https://openai.com/business/)
* [Developers](https://openai.com/api/)
* [Company](https://openai.com/about/)
* [Foundation(opens in a new window)](https://openaifoundation.org/)

Log in[Try ChatGPT(opens in a new window)](https://chatgpt.com/?openaicom-did=74540bb2-12ed-4f0b-8ea6-8cd8b8a1e31b&openaicom_referred=true)

* Research
* Products
* Business
* Developers
* Company
* [Foundation(opens in a new window)](https://openaifoundation.org/)

New GPT-3 capabilities: Edit & insert | OpenAI

Table of contents

* [Inserting into the middle of text](https://openai.com/index/gpt-3-edit-insert#inserting-into-the-middle-of-text)
* [Editing existing text](https://openai.com/index/gpt-3-edit-insert#editing-existing-text)

March 15, 2022

[Product](https://openai.com/news/product-releases/)

# New GPT‑3 capabilities: Edit & insert

We’ve released new versions of GPT‑3 and Codex which can edit or insert content into existing text, rather than just completing existing text.

![Image 1: GPT-3 Edit and Insert](https://images.ctfassets.net/kftzwdyauwt9/d0a85fe2-47d9-4903-581e5bb351af/f74abdf1faaa56c5aaba4b779d25e8ce/New_GPT-3_capabilities__Edit___insert.png?w=3840&q=90&fm=webp)

Listen to article

Share

_**Update on May 16, 2025:**_ _We launched Codex, a cloud-based software engineering agent that can work on many tasks in parallel._[_Learn more_⁠](https://openai.com/index/introducing-codex/)_._

* * *

We’ve released new versions of[GPT‑3⁠(opens in a new window)](https://beta.openai.com/docs/engines/gpt-3)and[Codex⁠(opens in a new window)](https://beta.openai.com/docs/engines/codex-series-private-beta)which can edit or insert content into existing text, rather than just completing existing text. These new capabilities make it practical to use the[OpenAI API⁠(opens in a new window)](https://beta.openai.com/)to revise existing content, such as rewriting a paragraph of text or refactoring code. This unlocks new use cases and improves existing ones; for example, insertion is already being piloted in[GitHub Copilot⁠(opens in a new window)](https://copilot.github.com/)with promising early results.

* [Read edit docs(opens in a new window)](https://beta.openai.com/docs/api-reference/edits)
* [Read insert docs(opens in a new window)](https://beta.openai.com/docs/guides/comp)

```
def___
fib(10)
```

```
def fib(n):
if n <= 1:
return 1
return fib(n-1) + fib(n-2)
fib(10)
```

```
def fib(n):
if n <= 1:
return 1
return fib(n-1) + fib(n-2)
fib(10)
```

Improve

```
def fib(n):
if n <= 1:
return 1
return fib(n-1) + fib(n-2)
fib(10)
```

Improve the

```
def fib(n):
if n <= 1:
return 1
return fib(n-1) + fib(n-2)
fib(10)
```

Improve the runtime

```
def fib(n):
if n <= 1:
return 1
return fib(n-1) + fib(n-2)
fib(10)
```

Improve the runtime complexity

```
def fib(n):
if n <= 1:
return 1
return fib(n-1) + fib(n-2)
fib(10)
```

Improve the runtime complexity of the

```
def fib(n):
if n <= 1:
return 1
return fib(n-1) + fib(n-2)
fib(10)
```

Improve the runtime complexity of the function

```
def fib(n):
if n <= 1:
return 1
return fib(n-1) + fib(n-2)
fib(10)
```

Improve the runtime complexity of the function

```
def fib(n, memo={}):
if n in memo:
return memo[n]
if n <= 1:
f = 1
else:
f = fib(n-1, memo) + fib(n-2, memo)
memo[n] = f
return f
```

```
def fib(n, memo={}):
if n in memo:
return memo[n]
if n <= 1:
f = 1
else:
f = fib(n-1, memo) + fib(n-2, memo)
memo[n] = f
return f
```

Translate

```
def fib(n, memo={}):
if n in memo:
return memo[n]
if n <= 1:
f = 1
Read full article → ← Back to Reads