forked from 0xWheatyz/SPARC
Make LLM model configurable via MODEL environment variable #1076
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
Roadmap reference: P2 / Backend - configurable LLM model
llm.pyhardcodesanthropic/claude-3.5-sonnet. Changing models requires a code change and a new image build.What to do
MODELenvironment variable toconfig.py(default:anthropic/claude-3.5-sonnetto preserve existing behaviour).llm.pyto read the model name from config instead of a literal string..env.examplewith theMODELvariable and a comment listing example values.Acceptance criteria
MODEL=openai/gpt-4ocauses that model to be used without code changes.MODELcontinues to useanthropic/claude-3.5-sonnet.Resolved by PR #29 (commit
b000146) which made the LLM model configurable via the MODEL environment variable. Closing as complete.