Skip to content

Latest commit

 

History

History
70 lines (53 loc) · 3.08 KB

File metadata and controls

70 lines (53 loc) · 3.08 KB

Model Examples

Examples demonstrating how to run Swarms agents against different model providers. Each subfolder is a provider (or model family) and contains runnable, self-contained scripts.

Set the matching API key as an environment variable before running any example (e.g. OPENAI_API_KEY, ANTHROPIC_API_KEY, OPENROUTER_API_KEY, AZURE_API_KEY, GROQ_API_KEY).

Providers

Anthropic

Azure OpenAI

Cerebras

DeepSeek

GPT-OSS

Llama 4

Lumo

Mistral

Ollama

OpenAI

OpenRouter

Qwen

vLLM

Custom LLM

  • base_llm.py — Plug a custom LLM class into an Agent