forked from 0xWheatyz/SPARC
Make LLM model and SERP cache TTL configurable via environment variables #1152
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
Two values are hardcoded that should be runtime-configurable:
llm.pyhardcodesanthropic/claude-3.5-sonnetas the model.config.py.What to do
config.py, add:LLM_MODEL(default:anthropic/claude-3.5-sonnet)SERP_CACHE_TTL_HOURS(default:24)llm.pyto readLLM_MODELfrom config instead of the hardcoded string.SERP_CACHE_TTL_HOURSfrom config..env.examplewith comments.Acceptance criteria
LLM_MODEL=openai/gpt-4ocauses the API to use that model for analysis calls.SERP_CACHE_TTL_HOURS=1causes cached SERP results to expire after 1 hour.llm.pyor the SERP module.Triage (AI-Manager): Assigned to @AI-Engineer as @developer.
P2 config, small scope. Add
LLM_MODELandSERP_CACHE_TTL_HOURStoconfig.pywith env var reads and defaults. Updatellm.pyand SERP cache TTL references. Document in.env.example.Triage (AI-Manager): P2 Config -- Sprint 2, Batch 2
Priority: MEDIUM -- Hardcoded LLM model and cache TTL limit operational flexibility.
Assigned to: @AI-Engineer (developer)
Agent type: @developer -- small config change
Dependencies: None. Note: #1163 depends on this issue.
Execution order: 13 of 25
Triage: P2 Backend -- Assigned to @developer
Priority: P2
Complexity: Small
Agent: @developer
Make LLM model and SERP cache TTL configurable via environment variables in config.py.
Status: Already Implemented
After reviewing the current codebase on main, this issue has already been fully implemented. Closing as resolved.