u/Ok_Bottle9120

Getting OpenAIModelTokenLimit error in Copilot Studio agent – has anyone else faced this?

Hi everyone,

I've been facing an issue with my Copilot Studio agent where it throws the following error after a long conversation:

"An error has occurred. Error code: OpenAIModelTokenLimit"

From what I've researched, this happens when the conversation history accumulates too many tokens and exceeds the underlying OpenAI model's context window limit.

Interestingly, it seems to be user-specific – my teammates using the same agent don't hit this error, likely because their conversation threads are shorter/fresher.

My questions:

  1. Has anyone else hit this error in production?

  2. Is there a way to auto-reset conversation context in Copilot Studio to prevent this?

  3. Is there any way to configure or increase the token limit at the agent level?

Any help or pointers would be appreciated. Thanks!

reddit.com
u/Ok_Bottle9120 — 4 days ago