Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: patch
changes:
changed:
- Temporarily downgraded Claude to 3.5 Sonnet.
6 changes: 5 additions & 1 deletion policyengine_api/services/ai_analysis_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,12 @@ def trigger_ai_analysis(self, prompt: str) -> Generator[str, None, None]:
def generate():
response_text = ""

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