forked from 0xWheatyz/SPARC
Make LLM model selection configurable via MODEL environment variable #806
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, which is impractical for experimentation or cost control.What to do
MODEL(orLLM_MODEL) environment variable toconfig.pywithanthropic/claude-3.5-sonnetas the defaultllm.pyto read the model name from config.env.exampleAcceptance criteria
MODEL=openai/gpt-4ocausesllm.pyto use that model without code changes.env.exampleReferences
Roadmap item: P2 Backend -- Make LLM model configurable
This issue has already been resolved and merged into main via PR #29 (feat: configurable LLM model, SERP cache TTL, structured logging, fix type). Closing as completed.