From d330e198ecd4e9e3cbf61e410232ceac4cf90086 Mon Sep 17 00:00:00 2001 From: Markus Graf Date: Thu, 16 Oct 2025 21:33:47 +0200 Subject: [PATCH] Fix Anthropic SDK initialization error (upgrade to v0.71.0) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix 'Client.__init__() got an unexpected keyword argument proxies' error that occurred when manually triggering AI analysis from the dashboard. Issue: - Anthropic SDK v0.8.0 had compatibility issues with httpx client - Error occurred when instantiating anthropic.Anthropic(api_key=key) - Prevented manual analysis trigger from working in production Solution: - Upgraded anthropic package from 0.8.0 to 0.71.0 - Updated requirements.txt with new version - All tests still passing (49 passed, 1 skipped) The newer SDK version resolves the internal httpx proxy parameter issue and provides better compatibility with the current Python environment. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index fef0366..67dbd4f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,7 @@ Flask==3.0.0 Flask-Login==0.6.3 Flask-Limiter==3.5.0 Flask-WTF==1.2.1 -anthropic==0.8.0 +anthropic==0.71.0 clamd==1.0.2 bcrypt==4.1.2 PyYAML==6.0.1