Support Claude 3.7 and use its extended thinking in research mode

Claude 3.7 Sonnet is Anthropic's first reasoning model. It provides a
single model/api capable of standard and extended thinking. Utilize
the extended thinking in Khoj's research mode.

Increase default max output tokens to 8K for Anthropic models.
This commit is contained in:
Debanjum
2025-03-11 01:54:12 +05:30
parent 69048a859f
commit 50f71be03d
7 changed files with 68 additions and 18 deletions

View File

@@ -86,7 +86,7 @@ dependencies = [
"pytz ~= 2024.1",
"cron-descriptor == 1.4.3",
"django_apscheduler == 0.6.2",
"anthropic == 0.26.1",
"anthropic == 0.49.0",
"docx2txt == 0.8",
"google-generativeai == 0.8.3",
"pyjson5 == 1.6.7",