Skip to content

Commit 8b08421

Browse files
committed
fix: Temporarily downgrade Claude to 3.5 Sonnet
1 parent 9c05b2d commit 8b08421

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

changelog_entry.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- bump: patch
2+
changes:
3+
changed:
4+
- Temporarily downgraded Claude to 3.5 Sonnet.

policyengine_api/services/ai_analysis_service.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,12 @@ def trigger_ai_analysis(self, prompt: str) -> Generator[str, None, None]:
5252
def generate():
5353
response_text = ""
5454

55+
# Temporarily downgrading Claude to 3.5 Sonnet to prevent unwanted
56+
# quotes in Explain with AI feature responses.
57+
# If Claude is still at 3.5 Sonnet on July 1, 2025, file an issue.
58+
# See https://github.com/PolicyEngine/policyengine-app/issues/2584
5559
with claude_client.messages.stream(
56-
model="claude-sonnet-4-20250514",
60+
model="claude-3-5-sonnet-20240620",
5761
max_tokens=1500,
5862
temperature=0.0,
5963
system="Respond with a historical quote",

0 commit comments

Comments
 (0)