Utilize open-source models with Agency Swarm.
1. Create an account on Astra Assistants API and obtain an API key.
2. Add Astra DB Token to your .env file:
.env
file.3. Add other model provider API keys to .env as well:
4. Install the Astra Assistants API and Gradio:
5. Patch the OpenAI client:
6. Create an agent:
model
parameter with the name of the model you want to use. With Astra Assistants, you can upload files as usual using files_folder
.7. Create an agency:
8. Start Gradio:
demo_gradio
method from the agency-swarm-lab repository:Install the previous version of agency-swarm as most projects are not yet compatible with streaming and Assistants V2:
Switch out the OpenAI client:
Set the model parameter:
Start Gradio:
demo_gradio
method from the agency-swarm-lab repository:For backend integrations, simply use: