Jan
10
2023
10
2023
Using OpenAI API with WebRequest from Unity
An article by mgear
4 Comments
Simple example for calling openAI completions API, with simple webrequest (and JSON data).
Repository:
https://github.com/unitycoder/UnityOpenAIGPT3
Making of video:
Related Posts
4 Comments + Add Comment
Leave a comment
Recent posts
- MotionVector Effect: Object “disappears” when paused
- [GreaseMonkey] Unity Forum Fixer
- UnityHub: Make Hub application background Translucent
- Customize SpriteShapeRenderer quality (but has issues)
- Editor tool: Copy selected gameobject’s names into clipboard as rows (for Excel)
- Editor tool: Replace string in selected gameobject’s names
- UnityHub: Enable built-in Login Dialog (no more browser login/logout issues!)
- Use TikTok-TTS in Unity (with WebRequest)
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
Recent Comments
- [Asset Store] Point Cloud Viewer & Tools on
- [Asset Store] Point Cloud Viewer & Tools on
- Vector3 maths for dummies! on
- UnityHub: Make Hub application background Translucent on
- UnityHub: Make Hub application background Translucent on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- [Asset Store] Point Cloud Viewer & Tools on
@unitycoder_com
My TweetsSubscribe to Blog via Email
Tag Cloud
2d
3D
AI
algorithm
android
asset
build
color
custom
demo
editor
effect
error
fake
free
game
generator
greasemonkey
indie
javascript
light
line
ludumdare
mesh
paint
particles
physics
plugin
proto
prototype
script
sea
shader
shadow
sprite
terrain
texture
tutorial
ui
unity
vertex
visibility
water
waves
webgl
[…] 10.01.2023: New example project here, uses webrequest, doesn’t require any DLL files https://unitycoder.com/blog/2023/01/10/using-openai-api-with-webrequest-from-unity/ […]
at the start of the video you showed an engine class, the one that contains the OpenAI engines.I am not understanding how to get it, from where?
it was from the old project, with DLL for it, but couldnt get it working anymore:
https://unitycoder.com/blog/2022/02/05/using-open-ai-gpt-3-api-in-unity/
Now there are few better alternatives,
https://github.com/unitycoder/UnityOpenAIGPT3/wiki/Alternatives
[…] First tried to fix the previous Openai DLL version, but then converted into pure webrequest version.. Repository: https://github.com/unitycoder/UnityOpenAIGPT3 No external DLL’s needed, like in previous video: https://www.youtube.com/watch?v=Suabq44rhzY Note: If you get 429 errors, go try in openai playground, if you have already used all free credits: https://beta.openai.com/playground Website: https://unitycoder.com/blog/2023/01/10/using-openai-api-with-webrequest-from-unity/ […]