TypeError: Asyncclient .__ init __ () erhielt ein unerwartetes Keyword -Argument "Proxies"
Posted: 13 Feb 2025, 21:52
Fehler: < /p>
Code: Select all
File "/app/.venv/lib/python3.11/site-packages/anthropic/_client.py", line 386, in __init__
super().__init__(
File "/app/.venv/lib/python3.11/site-packages/anthropic/_base_client.py", line 1437, in __init__
self._client = http_client or AsyncHttpxClientWrapper(^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.11/site-packages/anthropic/_base_client.py", line 1334, in __init__
super().__init__(**kwargs)
TypeError: Async`Client.__init__() got an unexpected keyword argument 'proxies'
< /code>
Ich weiß, dass ich, um dieses [url=viewtopic.php?t=11587]Problem[/url] zu beheben, HTTPX auf eine andere Version herabstufen, aber was ist, wenn ich fasthx = "2.0.1" verwende. Was ist die Lösung für antropic ai?
Mein Code: < /p>
load_dotenv()
log = logging.getLogger(__name__)
anthropic_api_key = os.getenv("ANTHROPIC_API_KEY")
anthropic_client = anthropic.Anthropic(api_key=anthropic_api_key) #