This is an open-source project meant to connect Unity with the Meta LLama2 Large language model using Python websockets. It's a client-server architecture, useful for online or offline games
- Python 3.6+
- Unity 2020.3+
- Create a new project in Unity
- Clone this repository
git clone https://github.com/HectorPulido/UnityAndLLama2.git
- Drag and drop the "clientSource" content into the project
- Then enter to the "llamaServer" folder
- Is very useful to create a virtual enviroment, install the dependencies with
pip install -r requirements.txt
- Copy the .env.test into a .env file and changit as you want
Start the server
python server.py
If working correctly, the server should display Listen in: localhost:8765
- Open the
UnityProject
folder with the Unity Editor - Open the sample scene
- Press the play button to start the client
Your contributions are greatly appreciated! Please follow these steps:
- Fork the project
- Create your feature branch
git checkout -b feature/MyFeature
- Commit your changes
git commit -m "my cool feature"
- Push to the branch
git push origin feature/MyFeature
- Open a Pull Request
Every basecode made by my is under MIT licence