- Get your API key from https://beta.openai.com/account/api-keys
- Save your API key into "StreamingAssets/secretkey.txt" (or other path and modify the api key loading path)
- Play main.scene, test some prompt (currently uses "Completions" API only)
See "#Scripts" gameobject, it has model name variable
Rest of the settings are currently hard-coded in the OpenAI.cs Execute() method, where it fill the POST request json data.
https://unitycoder.com/blog/2023/01/10/using-openai-api-with-webrequest-from-unity/