Skip to content

unitycoder/UnityOpenAIGPT3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity OpenAI API

USAGE

  • 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)

SETTINGS

See "#Scripts" gameobject, it has model name variable
image
Rest of the settings are currently hard-coded in the OpenAI.cs Execute() method, where it fill the POST request json data.
image

IMAGES

image

WEBSITE

https://unitycoder.com/blog/2023/01/10/using-openai-api-with-webrequest-from-unity/

ALTERNATIVES

About

testing GPT3 API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages