# Gpt repeatley respond wrong api code(chat.completions)

**URL:** <https://community.openai.com/t/gpt-repeatley-respond-wrong-api-code-chat-completions/883988>\
**Category:** ChatGPT\
**Tags:** api\
**Created:** [July 28, 2024, 5:34am UTC](https://community.openai.com/t/gpt-repeatley-respond-wrong-api-code-chat-completions/883988 "2024-07-28T05:34:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![baramdore2](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/baramdore2/32/152104_2.png) [@baramdore2](https://community.openai.com/u/baramdore2)\
**Post date:** [July 28, 2024, 5:34am UTC](https://community.openai.com/t/gpt-repeatley-respond-wrong-api-code-chat-completions/883988/1 "2024-07-28T05:34:02Z")

</div>

Hello, I am a user of the ChatGPT API. I am writing code through GPT, but the OpenAI API is continuously being used incorrectly. It keeps using the old `openai.ChatCompletion.create`, even though I correct it to `chat.completions.create` in the chat or provide the API documentation page. Despite sending dozens of messages, it occasionally uses the correct input but continues to revert to `openai.ChatCompletion.create`. I don’t understand why this is happening. Is there any solution to this problem?

---

<div class="post-metadata">

**Author:** ![khansulo](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/khansulo/32/449181_2.png) [@khansulo](https://community.openai.com/u/khansulo)\
**Post date:** [November 9, 2024, 8:52pm UTC](https://community.openai.com/t/gpt-repeatley-respond-wrong-api-code-chat-completions/883988/2 "2024-11-09T20:52:01Z")

</div>

This is the most intentional and annoying thing ever. If you use a chat.completion it always reverts it to trash. I know it’s dated but feed it its own user manual for the love of God.

---

<div class="post-metadata">

**Author:** ![scottfree](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/scottfree/32/517774_2.png) [@scottfree](https://community.openai.com/u/scottfree)\
**Post date:** [December 17, 2024, 2:52pm UTC](https://community.openai.com/t/gpt-repeatley-respond-wrong-api-code-chat-completions/883988/3 "2024-12-17T14:52:09Z")

</div>

Yes, came here for this reason, and it doesn’t matter if you’re using the latest ChatGPT models. When you try to correct ChatGPT, it will even tell you that you’re wrong. 😂
