Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion utils/llm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ All configuration is via environment variables:

| Variable | Default | Description |
|---|---|---|
| `LLM_PROVIDER` | `venice` | Provider name: `venice`, `openai`, `anthropic`, or custom |
| `LLM_PROVIDER` | `venice` | Provider name: `venice`, `groq`, `openai`, `anthropic`, or custom |
| `LLM_API_KEY` | *(required)* | API key for the LLM provider |
| `LLM_MODEL` | `grok-41-fast` | Model identifier |
| `LLM_BASE_URL` | *(per provider)* | API base URL (not needed for anthropic) |
Expand All @@ -154,6 +154,7 @@ All configuration is via environment variables:
| Provider | Base URL | Default Model | Package |
|---|---|---|---|
| Venice.ai | `https://api.venice.ai/api/v1` | `grok-41-fast` | `openai` |
| Groq | `https://api.groq.com/openai/v1` | `openai/gpt-oss-safeguard-20b` | `openai` |
| OpenAI | `https://api.openai.com/v1` | `gpt-4o-mini` | `openai` |
| Anthropic | *(native API)* | `claude-haiku-4-5-20251001` | `anthropic` |
| Custom | Set `LLM_BASE_URL` | Set `LLM_MODEL` | `openai` |
Expand Down
5 changes: 5 additions & 0 deletions utils/llm/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Provider defaults:
venice: base_url=https://api.venice.ai/api/v1, model=llama-3.3-70b
groq: base_url=https://api.groq.com/openai/v1, model=openai/gpt-oss-safeguard-20b
openai: base_url=https://api.openai.com/v1, model=gpt-4o-mini
anthropic: model=claude-haiku-4-5-20251001 (uses native Anthropic API)
Custom: Set LLM_BASE_URL and LLM_MODEL explicitly.
Expand All @@ -26,6 +27,10 @@
"base_url": "https://api.venice.ai/api/v1",
"model": "grok-41-fast",
},
"groq": {
"base_url": "https://api.groq.com/openai/v1",
"model": "openai/gpt-oss-safeguard-20b",
},
"openai": {
"base_url": "https://api.openai.com/v1",
"model": "gpt-4o-mini",
Expand Down