forked from 0xWheatyz/SPARC
Make LLM model configurable via MODEL environment variable #75
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
llm.pyhardcodesanthropic/claude-3.5-sonnet. Switching models requires a code change and rebuild.Work
MODELenvironment variable (default:anthropic/claude-3.5-sonnet).llm.py(orconfig.py) and pass it to the OpenRouter API call..env.exampleto document the variable and list a few example model IDs.Acceptance Criteria
MODEL=openai/gpt-4ocauses the API to use GPT-4o for analysis.MODELis unset, the default (anthropic/claude-3.5-sonnet) is used.References
Roadmap: Backend — make LLM model configurable.
Resolved. LLM model is configurable via
MODELenvironment variable, with per-analysis model selection also supported. Implemented in PR #29 and extended in PR #64 (both merged). SeeSPARC/config.pyandSPARC/llm.py.