Improve Claude context caching to improve response cost, intelligence

Old thought messages are dropped by default by the Anthropic API. This
change ensures old thoughts are kept. This should improve cache
utilization to reduce costs. And keeping old thoughts may also improve
model intelligence.
This commit is contained in:
Debanjum
2025-12-05 11:45:10 -08:00
parent 9c03af2735
commit 181332dcb8
3 changed files with 19 additions and 7 deletions

View File

@@ -85,7 +85,7 @@ dependencies = [
"pytz ~= 2024.1",
"cron-descriptor == 1.4.3",
"django_apscheduler == 0.7.0",
"anthropic == 0.52.0",
"anthropic == 0.75.0",
"docx2txt == 0.8",
"google-genai == 1.52.0",
"google-auth ~= 2.23.3",