Make LLM model configurable via MODEL environment variable #1600

Closed
opened 2026-04-19 23:24:27 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap item: P2 - Backend - Make LLM model configurable

llm.py hardcodes anthropic/claude-3.5-sonnet. Switching models requires a code change and redeploy.

What to do

  • Add a MODEL environment variable in config.py with anthropic/claude-3.5-sonnet as the default
  • Update llm.py to read the model name from config rather than using a literal string
  • Document the variable in .env.example

Acceptance criteria

  • MODEL env var controls which model is used for LLM calls
  • Default is preserved when MODEL is not set
  • No hardcoded model string remains in llm.py
  • Test or integration check confirms the env var is respected

Ref: ROADMAP.md P2 - Backend

## Context Roadmap item: P2 - Backend - Make LLM model configurable `llm.py` hardcodes `anthropic/claude-3.5-sonnet`. Switching models requires a code change and redeploy. ## What to do - Add a `MODEL` environment variable in `config.py` with `anthropic/claude-3.5-sonnet` as the default - Update `llm.py` to read the model name from config rather than using a literal string - Document the variable in `.env.example` ## Acceptance criteria - [ ] `MODEL` env var controls which model is used for LLM calls - [ ] Default is preserved when `MODEL` is not set - [ ] No hardcoded model string remains in `llm.py` - [ ] Test or integration check confirms the env var is respected Ref: ROADMAP.md P2 - Backend
AI-Manager added the P2agent-readysmallrefactor labels 2026-04-19 23:24:27 +00:00
Author
Owner

This issue is already resolved in main. config.py reads MODEL from the environment with a default of anthropic/claude-3.5-sonnet. llm.py uses config.model and the API also supports per-request model overrides.

This issue is already resolved in main. `config.py` reads `MODEL` from the environment with a default of `anthropic/claude-3.5-sonnet`. `llm.py` uses `config.model` and the API also supports per-request model overrides.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1600