forked from 0xWheatyz/SPARC
Make LLM model configurable via MODEL environment variable #948
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?
Background
llm.pyhardcodesanthropic/claude-3.5-sonnet. Switching models requires a code change and image rebuild.Task
MODELenvironment variable (default:anthropic/claude-3.5-sonnetto preserve existing behaviour).llm.py(orconfig.py) and pass it to the OpenRouter/LLM client..env.example.Acceptance Criteria
MODEL=openai/gpt-4ocauses requests to use that model.MODELis unset.Reference
Roadmap: P2 Backend -- Make LLM model configurable.
Triaged by repo manager. This issue has already been resolved.
config.pyline 43 readsMODELfrom the environment:model = os.getenv('MODEL', 'anthropic/claude-3.5-sonnet'). The variable is documented in.env.example. The API and batch endpoints accept an optional model parameter that overrides the default. Closing as already implemented.