forked from 0xWheatyz/SPARC
Make LLM model selection configurable via MODEL environment variable #932
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?
Summary
llm.pyhardcodesanthropic/claude-3.5-sonnetas the model. Switching to a different model requires a code change and a new image build.Roadmap Reference
P2 Backend -- Make LLM model configurable (ROADMAP.md)
What to do
config.py(orllm.py), read aMODELenvironment variable.anthropic/claude-3.5-sonnetwhen unset.MODELin.env.example.Acceptance criteria
MODEL=openai/gpt-4oin the environment causesllm.pyto use that model for new analysis requests.MODELis unset, the existing default model is used.This issue has been resolved.
SPARC/config.pyline 43 readsmodel = os.getenv("MODEL", "anthropic/claude-3.5-sonnet"). The LLM model is configurable via the MODEL environment variable. Closing as completed.