forked from 0xWheatyz/SPARC
Make LLM model configurable via MODEL environment variable #1102
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 models requires a code change and redeploy.What to do
MODELtoconfig.py(default:anthropic/claude-3.5-sonnet).llm.pyfrom the config rather than the hardcoded string..env.exampleto document the variable.Acceptance criteria
MODEL=openai/gpt-4ocausesllm.pyto use that model string in API calls (verifiable via a mock/stub test).MODELdefaults toanthropic/claude-3.5-sonnet.Roadmap reference: P2 - Backend - Make LLM model configurable
This issue has been verified as already implemented in the current codebase. The acceptance criteria are met based on code review. Closing as completed.