# Edit Functions bug in Assistant edit popup

**URL:** <https://community.openai.com/t/edit-functions-bug-in-assistant-edit-popup/829775>\
**Category:** Prompting\
**Tags:** gpt-4, bug, function-names\
**Created:** [June 19, 2024, 6:15pm UTC](https://community.openai.com/t/edit-functions-bug-in-assistant-edit-popup/829775 "2024-06-19T18:15:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![clive2](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/clive2/32/448941_2.png) [@clive2](https://community.openai.com/u/clive2)\
**Post date:** [June 19, 2024, 6:15pm UTC](https://community.openai.com/t/edit-functions-bug-in-assistant-edit-popup/829775/1 "2024-06-19T18:15:31Z")

</div>

In the OpenAI Assistant editor, I have 2 functions, if I try and update either I get this error,

The only way to say is to give my function a different name, then go back and change it back to what it should be.

I guess when saving after making changes its seeing it as a NEW function, even though im editting an existing function.

 ![image](https://us1.discourse-cdn.com/openai1/original/4X/5/a/9/5a98d1cb94aedac7f0bc5a9d5d76f3313c5ef05f.png)

---

<div class="post-metadata">

**Author:** ![razvan.i.savin](https://avatars.discourse-cdn.com/v4/letter/r/a88e4f/32.png) [@razvan.i.savin](https://community.openai.com/u/razvan.i.savin)\
**Post date:** [June 19, 2024, 6:18pm UTC](https://community.openai.com/t/edit-functions-bug-in-assistant-edit-popup/829775/2 "2024-06-19T18:18:56Z")

</div>

Probably you set it twice.  
Another option → save them in a notepad, delete the functions, add them again and see if you get same error. If you get same error, edit the post and add a #Bugs tag.

---

<div class="post-metadata">

**Author:** ![clive2](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/clive2/32/448941_2.png) [@clive2](https://community.openai.com/u/clive2)\
**Post date:** [June 19, 2024, 6:41pm UTC](https://community.openai.com/t/edit-functions-bug-in-assistant-edit-popup/829775/3 "2024-06-19T18:41:50Z")

</div>

No, I didn’t set the same function name twice.

Yes, of course if I save them in notepad, and delete then add then its going to work just fine.

I’m saying that when I EDIT a function, it forces me to rename it in order to be able to save changes, then I have to go and EDIT it again to change its name back to what it was before.

---

<div class="post-metadata">

**Author:** ![razvan.i.savin](https://avatars.discourse-cdn.com/v4/letter/r/a88e4f/32.png) [@razvan.i.savin](https://community.openai.com/u/razvan.i.savin)\
**Post date:** [June 19, 2024, 7:28pm UTC](https://community.openai.com/t/edit-functions-bug-in-assistant-edit-popup/829775/4 "2024-06-19T19:28:59Z")

</div>

I used this function (just build it with GPT), i didn’t had a problem with the name (I was thinking some words are restricted, but is working):

```json

{
  "name": "get_medicalterm_unsure",
  "description": "Identifies a medical term or phrase based on available details. This function aims to accurately determine medical terminology, allowing access to specific information and services related to healthcare.",
  "parameters": {
    "type": "object",
    "properties": {
      "term_or_phrase": {
        "type": "string",
        "description": "The medical term or phrase to identify.",
        "optional": false
      },
      "context": {
        "type": "string",
        "description": "Additional context or details that may help in identification.",
        "optional": true
      },
      "source": {
        "type": "string",
        "description": "The source or origin of the term/phrase, if known.",
        "optional": true
      },
      "language": {
        "type": "string",
        "description": "The language in which the term/phrase is expressed (e.g., English, Latin, etc.).",
        "optional": true
      },
      "specialty": {
        "type": "string",
        "description": "The medical specialty or field to which the term/phrase relates (e.g., cardiology, dermatology, etc.).",
        "optional": true
      }
    },
    "required": ["term_or_phrase"]
  }
}

```

---

<div class="post-metadata">

**Author:** ![clive2](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/clive2/32/448941_2.png) [@clive2](https://community.openai.com/u/clive2)\
**Post date:** [June 19, 2024, 8:31pm UTC](https://community.openai.com/t/edit-functions-bug-in-assistant-edit-popup/829775/5 "2024-06-19T20:31:00Z")

</div>

Try adding another function of a similar name. So your assistant has 2 functions.

Then go and Edit the first one, change a param or something and try and save

---

<div class="post-metadata">

**Author:** ![anon-dev-72](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/anon-dev-72/32/427056_2.png) [@anon-dev-72](https://community.openai.com/u/anon-dev-72)\
**Post date:** [July 1, 2024, 9:12am UTC](https://community.openai.com/t/edit-functions-bug-in-assistant-edit-popup/829775/6 "2024-07-01T09:12:46Z")

</div>

Yes that’s annoying… every time I want to update the description I need to change the function name and then change it back.
