https://github.com/unitycoder/unityopenaigpt3
testing GPT3 API
https://github.com/unitycoder/unityopenaigpt3
Last synced: 3 months ago
JSON representation
testing GPT3 API
- Host: GitHub
- URL: https://github.com/unitycoder/unityopenaigpt3
- Owner: unitycoder
- License: mit
- Created: 2023-01-10T18:10:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-22T18:41:21.000Z (over 2 years ago)
- Last Synced: 2025-02-28T16:21:46.839Z (4 months ago)
- Language: C#
- Size: 30.3 KB
- Stars: 25
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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

Rest of the settings are currently hard-coded in the OpenAI.cs Execute() method, where it fill the POST request json data.
### IMAGES
### WEBSITE
https://unitycoder.com/blog/2023/01/10/using-openai-api-with-webrequest-from-unity/### ALTERNATIVES
- https://github.com/unitycoder/UnityOpenAIGPT3/wiki/Alternatives