Skip to content

About

testing GPT3 API

Resources

Stars

24 stars

Watchers

2 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

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

Stars

24 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages