Title: Error while calling OpenAI:
Last modified: February 13, 2023

---

# Error while calling OpenAI:

 *  Resolved [leonlee888](https://wordpress.org/support/users/leonlee888/)
 * (@leonlee888)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/error-while-calling-openai-3/)
 * There is error when I ask too many question on 1 webpage:
 * “Error while calling OpenAI: This model’s maximum context length is 4097 tokens,
   however you requested 4145 tokens (2145 in your prompt; 2000 for the completion).
   Please reduce your prompt; or completion length.”
 * Usaully I have to refresh and get a new webpage. Do we have other better slove
   way?

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

 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/error-while-calling-openai-3/#post-16464623)
 * Hi,
 * _Usaully I have to refresh and get a new webpage. Do we have other better slove
   way?_
 * When do you get the _This model’s maximum context length is 4097 tokens_ message?
   Wen having too long conversation?
 *  Thread Starter [leonlee888](https://wordpress.org/support/users/leonlee888/)
 * (@leonlee888)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/error-while-calling-openai-3/#post-16464685)
 * When we ask many question in same webpage. Maybe we ask 8~10 question, this error
   will happen

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

The topic ‘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/)

 * 2 replies
 * 2 participants
 * Last reply from: [leonlee888](https://wordpress.org/support/users/leonlee888/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/error-while-calling-openai-3/#post-16464685)
 * Status: resolved