forked from 0xWheatyz/SPARC
Backend: make LLM model configurable via MODEL environment variable #1317
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-sonnetas the model. Switching to a different model (for cost, capability, or A/B testing reasons) requires a code change and a new image build.What to do
llm.py, read aMODELenvironment variable (or add it toconfig.py).anthropic/claude-3.5-sonnet) when the variable is not set..env.examplewith the new variable.Acceptance criteria
MODEL=openai/gpt-4ocauses the backend to use that model for new analyses.MODELis not set.References
Roadmap: P2 Backend — Make LLM model configurable.