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
Action Steps
- Explore the new edit and insert capabilities of GPT-3
- Read the documentation for edit and insert APIs
- Test the new capabilities with existing code or text
- 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.

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
[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.

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
DeepCamp AI