# Introducing Insert and Edits Capabilities

**URL:** <https://community.openai.com/t/introducing-insert-and-edits-capabilities/15993>\
**Category:** Announcements\
**Created:** [March 15, 2022, 7:40pm UTC](https://community.openai.com/t/introducing-insert-and-edits-capabilities/15993 "2022-03-15T19:40:57Z")\
**Posts on this page:** 1\
**Showing post:** 112

<div class="post-metadata">

**Author:** ![cv43](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/cv43/32/12681_2.png) [@cv43](https://community.openai.com/u/cv43)\
**Post date:** [October 31, 2022, 9:34am UTC](https://community.openai.com/t/introducing-insert-and-edits-capabilities/15993/112 "2022-10-31T09:34:59Z")

</div>

I am trying some code completions (insertions) for python code. You may check the attached image which pinpoints the problem.

When asking for an insertions sometimes the model replies with a possible solution given the context, but then continues to return tokens for additional problems by also providing comments that describe the additional problems. In the specific example we ask an insertion in order to get a reply if user can login depending on his username/password, but then we get additional function for “register the user if the username is not taken”.  
I can somehow overcome this problem by providing specific stop strings but this is highly dependend to the context.

Is this a prefered behavior of the model? Is there any additional suggestions for overcoming that problem?

Thank you

 ![Screenshot 2022-10-31 at 13.30.00](https://us1.discourse-cdn.com/openai1/original/2X/1/1f614301cf1fc64ee97df92bd87c65e7efa16756.png)

---

_[View the full topic](https://community.openai.com/t/introducing-insert-and-edits-capabilities/15993)._
