TypeError: Asyncclient .__ init __ () erhielt ein unerwartetes Keyword -Argument "Proxies"Python

Python-Programme
Anonymous
 TypeError: Asyncclient .__ init __ () erhielt ein unerwartetes Keyword -Argument "Proxies"

Post by Anonymous »

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)  #

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post