Switch to Sonnet for better accuracy, stronger anti-hallucination prompt

This commit is contained in:
root
2026-03-31 19:41:13 -05:00
parent 5773870c91
commit 2cb6f4d6b2
3 changed files with 13 additions and 11 deletions

View File

@@ -109,7 +109,7 @@ Return ONLY the JSON object."""
# Call Claude API
client = anthropic.Anthropic(api_key=settings.ANTHROPIC_API_KEY)
message = client.messages.create(
model="claude-haiku-4-5-20251001",
model="claude-sonnet-4-20250514",
max_tokens=2000,
messages=[{"role": "user", "content": prompt}],
)