How To Use ChatGPT With Unity: Python And API Setup #2
https://www.youtube.com/watc...In today's video we begin going through all the steps required to integrate ChatGPT with Unity which include:
1- Setting up our python environment including ChatGPT Wrapper and dependencies
2- Creating a ChatGPT Web Service (API) with Python Flask
3- Setting up a VS Code Rest Client to test the communication between ChatGPT and our web service.
π’ ChatGPT Tutorial Requirements:
π Python 3.7 or greater https://www.python.org/downloads
π Pip for package dependencies https://pip.pypa.io/en/stable/installation
π Python ChatGPT Wrapper https://github.com/mmabrouk/chatgpt-wrapper
π Requirements.txt https://github.com/mmabrouk/chatgpt-wrapper/blob/main/requirements.txt
π» Few commands used today to get this ChatGPT Tutorial setup:
π To create Virtual Environment: python -m venv ./chatgpt_env
π To Activate Virtual Environment:
(On Windows) .\chatgpt_env\Scripts\Activate.ps1
(On Mac or Linux) source tutorial-env/bin/activate
π To Install ChatGPT Wrapper: pip install git+https://github.com/mmabrouk/chatgpt-wrapper
π To Install Requirements.txt: pip install -r requirements.txt
π To Install Playwright default browser: playwright install firefox
π To Setup ChatGPT connection: chatgpt install
π Support me by Subscribing to avoid missing future videos!
https://www.youtube.com/dilmerv
π Support me in Patreon so I can keep doing stuff like this for free!
https://www.patreon.com/dilmerv
π Get XR & game development tips from me in Twitter
https://www.twitter.com/dilmerv
π₯½ Learn & Get my XR Training from:
https://www.learnxr.io
π My Blog / π₯ Newsletter (Subscribe to get up to date XR news)
https://www.getrevue.co/profile/dilmerv
#chatgpt #chatgpttutorial #unity