Setup
API Setup
Our agents can be deployed with either OpenAI API or your local models.
[Option 1] Using OpenAI API
Accessing the OpenAI API requires the API key, which you could get from here. We here provide instructions for different OS.
Unix-like System (Linux / MacOS)
Replace ~/.zshrc
with ~/.bashrc
if you are using bash.
Windows
If you are using Command Prompt:
Or if you are using PowerShell:
These commands on Windows will set the environment variable for the duration of that particular Command Prompt or PowerShell session only. You may use setx
or change the system properties dialog for the change to take place in all the new sessions.
General method
Create a file named .env
in your project directory, with the following setting.
Then, load the environment variables in your python script:
[Option 2] Using other APIs
If you are using other APIs that are not provided by OpenAI, you can refer to Models/Using Models by API calling
[Option 3] Using Local Models
If you are using local models, you can refer to Models/Using Local Models