Title: Error in chat window &#8221; Error while calling OpenAI&#8230;..&#8221;
Last modified: January 28, 2023

---

# Error in chat window ” Error while calling OpenAI…..”

 *  Resolved [pasqua200](https://wordpress.org/support/users/pasqua200/)
 * (@pasqua200)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-in-chat-window-error-while-calling-openai/)
 * Hello !
   Any question I insert in chat window, after about 3 seconds receive this:“
   Error while calling OpenAI: you must provide a model parameter”yet I put the 
   model well, I do not understand … Can you help with the issue?
 * Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-in-chat-window-error-while-calling-openai/#post-16416461)
 * Hi [@pasqua200](https://wordpress.org/support/users/pasqua200/),
 * What does your shortcode exactly looks like?
 *  Thread Starter [pasqua200](https://wordpress.org/support/users/pasqua200/)
 * (@pasqua200)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-in-chat-window-error-while-calling-openai/#post-16417759)
 * Hi [@tigroumeow](https://wordpress.org/support/users/tigroumeow/) , like that:
   [
   mwai_chat context=”” ai_name=”FMC” casually_fined_tuned=”true”]I inserted the
   code on my website to test, at the bottom before the footer : [wwww.grodt.fr](http://wwww.grodt.fr)
   to watch
 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-in-chat-window-error-while-calling-openai/#post-16417916)
 * Did you actually finetune a model? Did you also insert the model in the shortcode?(
   I can’t see it above)
 * I can’t seem to access your website 🙁
 *  Thread Starter [pasqua200](https://wordpress.org/support/users/pasqua200/)
 * (@pasqua200)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-in-chat-window-error-while-calling-openai/#post-16419584)
 * Yes, I tried several methods, for example:
 * [mwai_chat context=”” ai_name=”FMC” casually_fined_tuned=”true” model=”text-curie-
   001″]
 * Answer in chat:
 * System:
   Error while calling OpenAI: you must provide a model parameter
 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-in-chat-window-error-while-calling-openai/#post-16419664)
 * This will not work fine for at least 3 reasons:
 *     ```wp-block-code
       [mwai_chat context="" ai_name="FMC" casually_fined_tuned="true" model="text-curie-001"]
       ```
   
 * First, text-curie-001 is not a _casually fined tuned_ model.
 * The format used in _ai\_name_ and _user\_name_ should be the same. By default,
   the user is “User: ” (it’s probably like this in your settings). However, your
   ai_name doesn’t have “: “. It needs to be the same, as the AI model uses this
   to understand that it is a discussion.
 * You are using a standard model, so you absolutely need a context. It might work
   without it, but the OpenAI models work better with a context.
 * But that wouldn’t cause the issue you get.
 * Could you Reset Parameters in the Settings, to make sure everything is nice and
   clean? They simply drop the shortcode [mwai_chat] without any parameters in it?
   Just as a test. Then, if it works, we can process slowly to the result you want.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Error in chat window ” Error while calling OpenAI…..”’ is closed to new
replies.

 * ![](https://ps.w.org/ai-engine/assets/icon-256x256.png?rev=3431928)
 * [AI Engine - The Chatbot, AI Framework & MCP for WordPress](https://wordpress.org/plugins/ai-engine/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ai-engine/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ai-engine/)
 * [Active Topics](https://wordpress.org/support/plugin/ai-engine/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ai-engine/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ai-engine/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/error-in-chat-window-error-while-calling-openai/#post-16419664)
 * Status: resolved