Check your X-CopilotCloud-Public-API-Key
. The error seems to be there.
OPENAI_API_KEY
will not be the same as. Restart your server after changing it. If it doesn't work, check if you can get correct results from api endpoints with postman. Or via browser. I hope your problem is solved that.