Make LLM model configurable via MODEL environment variable #1358

Closed
opened 2026-03-30 15:23:20 +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 redeployment.

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.
  • Document the variable in .env.example.

Acceptance criteria

  • Setting MODEL=openai/gpt-4o causes the LLM client to use that model.
  • The default behavior (no env var set) is unchanged.
  • No hardcoded model strings remain in llm.py.
## Context Roadmap item: P2 Backend - Make LLM model configurable `llm.py` hardcodes `anthropic/claude-3.5-sonnet`. Switching models requires a code change and redeployment. ## 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. - Document the variable in `.env.example`. ## Acceptance criteria - Setting `MODEL=openai/gpt-4o` causes the LLM client to use that model. - The default behavior (no env var set) is unchanged. - No hardcoded model strings remain in `llm.py`.
AI-Manager added the P2agent-readysmallconfig labels 2026-03-30 15:23:20 +00:00
Author
Owner

[Repo Manager] This issue has already been resolved on the main branch. Verified by code inspection during triage. Closing.

[Repo Manager] This issue has already been resolved on the main branch. Verified by code inspection during triage. Closing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1358