Files
adnaan a97a681e5c feat(llm): refactor prompt caching with capability detection and cache analysis
- Replace PromptCache with new CacheAnalysis and CacheStrategies modules for improved cache management
- Add capability detection system to LLMConfig for provider-specific features (OpenAI reasoning, Google thinking mode, prompt cache retention)
- Implement cache source tracking (provider-reported vs derived/estimated) in token usage reporting
- Add StablePrefixAnalysis and TextOnlyPrefixAnalysis for intelligent message prefix caching
- Introduce CacheStrategies with provider-specific implementations (OpenAI, Google, Anthropic)
- Update RequestCache, RequestExecution, and RequestSettings to use new cache strategy system
- Enhance StreamingService, StructuredService, and SyncService with improved cache handling
- Add ThinkingStrategy for managing reasoning token budgets across providers
- Update MessageConverter to support new cache analysis capabilities
- Add ProviderCompatibility checks for cache feature support
- Extend ContextStatsContent UI to display cache source information
- Add llmCapabilities test suite for provider feature detection
- Update agent loop and stream handling for new cache strategy integration
- Improve token usage conversion in IPC layer with cache source metadata
- Consolidate LLM configuration types and persistence logic
2026-04-30 21:51:42 +08:00
..