You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Add Settings injection to all services for proper .env fallback (#458)
Inject Settings dependency into all services that instantiate
LLMParametersService to ensure proper .env value fallback.
**Services Updated:**
- CollectionService
- ConversationService
- ConversationSummarizationService
- EntityExtractionService
- PipelineService
- PodcastService
- QuestionService
- SearchService
- UserProviderService
**Other Updates:**
- data_ingestion/ingestion.py - Settings injection
- doc_utils.py - Settings injection
- generation/providers/factory.py - Settings injection
- retrieval/reranker.py - Settings injection
- router/user_routes/llm_routes.py - Settings injection
**Why:**
These services create LLMParametersService instances. With the fix
in #458, LLMParametersService now requires Settings to properly
fall back to .env values when no database override exists.
**Impact:**
All services now respect .env configuration values like
MAX_NEW_TOKENS=1024 instead of using hardcoded defaults.
Part of #458
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments