Spaces:
Running
Running
Commit History
-
Add token-aware history management and safety caps to prevent crashes Running
- Implement trim_messages from langchain_core for token-aware history trimming - Add hard safety caps: history (20k chars), summary (2k chars), prompt (30k chars) - Route all LLM calls through safe_llm_invoke() with prompt size protection - Fix broken summarization: summary now injected into prompts as SystemMessage - Cap concept extraction to last 3 syntheses (prevents O(n) API calls) - Add session TTL cleanup (1 hour) to prevent memory leaks - Add comprehensive error logging with turn numbers and token counts Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>26db631
-
Fix: move theme to Blocks(), remove from launch()
d00c08c -
Fix README metadata
a5cdbbb -
Initial deploy: Hitchens chat with 2 model variants
64873bc