Configuring Discourse AI with internal OpenAI APIs

In my experience, try changing the Context window value to something like 200000 or 128000.