forked from 0xWheatyz/SPARC
Config: make LLM model configurable via MODEL environment variable #883
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
llm.pyhardcodesanthropic/claude-3.5-sonnet. Switching models requires a code change and image rebuild.Roadmap reference: P2 Backend - Make LLM model configurable
What to do
MODEL(orLLM_MODEL) environment variable toconfig.pywith a sensible default (anthropic/claude-3.5-sonnet).llm.pyto read the model name from config..env.example.Acceptance criteria
MODEL=openai/gpt-4oat runtime uses GPT-4o without code changes.MODELis unset.This issue has been resolved. The changes are already merged into main.
MODEL environment variable added to config.py (default: anthropic/claude-3.5-sonnet). llm.py reads model from config.
Closing as completed.