srcnalt / OpenAI-Unity

An unofficial OpenAI Unity Package that aims to help you use OpenAI API directly in Unity Game engine.
MIT License
672 stars 150 forks source link

Invalid Request Error #63

Closed AnyNqm3 closed 1 year ago

AnyNqm3 commented 1 year ago

I am getting this error: UnityEngine.Debug:LogError (object) OpenAI.OpenAIApi/d__6`1:MoveNext () (at Library/PackageCache/com.srcnalt.openai-unity@8d6d57d5ae/Runtime/OpenAIApi.cs:88) UnityEngine.UnitySynchronizationContext:ExecuteTasks ()

Any Idea on how to fix it?

jackmca commented 1 year ago

Are you providing an organisation string in the API? I had this same error and by removing the organisation string, it fixed it for me.