forked from 0xWheatyz/SPARC
Make LLM model configurable via MODEL environment variable instead of hardcoding claude-3.5-sonnet #47
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?
Problem
llm.pyhardcodesanthropic/claude-3.5-sonnetas the model identifier. Switching to a different model (e.g., for cost, capability, or testing reasons) requires a code change and redeployment.Task
MODELenvironment variable inllm.py(orconfig.py).anthropic/claude-3.5-sonnetwhenMODELis unset so existing deployments are unaffected.MODELto.env.examplewith the default value and a comment listing example alternatives.MODELenvironment variable.Acceptance Criteria
MODEL=openai/gpt-4ocausesllm.pyto use that model for all analysis calls.MODELusesanthropic/claude-3.5-sonnetas the default.llm.py.References
Roadmap: P2 -- Backend -- Make LLM model configurable.
Closing: Already implemented in PR #29. config.py reads MODEL from environment with a default of anthropic/claude-3.5-sonnet.