The Playground is a local, browser-based interface for creating, configuring, and managing assistants that you use through the API. Run the Python application, set an OpenAI API key, and open its displayed URL in a browser. section 6.2.1
Listing 6.2 Installing the GPT Assistants Playground
# change to a working folder and create a new Python virtual environment git clone https://github.com/cxbxmxcx/GPTAssistantsPlayground #1 cd GPTAssistantsPlayground #2 pip install -r requirements.txt #3
See the commands for cloning the project and installing its requirements. section 6.2.1
Listing 6.3 Running the GPT Assistants Playground
export OPENAI_API_KEY="your-api-key" #1 python main.py #2
See the commands for setting the API key and starting the application. section 6.2.1
The interface supports practical assistant workflows:
- Create assistants and configure their instructions and options. section 6.2.1
- Add custom actions and run Python locally in an isolated virtual environment. section 6.2.1
- Use a Manager Assistant to install available assistants and save assistant definitions as JSON. section 6.3.1
Install an assistant
Select the Manager Assistant and ask it to install a named assistant, such as the Python Coding Assistant. The Playground can also save assistant definitions to a JSON file. section 6.3.1
