You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/Users/samuel/code/.../.venv/lib/python3.12/site-packages/openai/_client.py", line 337, in __init__
super().__init__(
File "/Users/samuel/code/.../.venv/lib/python3.12/site-packages/openai/_base_client.py", line 1420, in __init__
raise TypeError(
TypeError: Invalid `http_client` argument; Expected an instance of `httpx.AsyncClient` but got <class 'httpx.AsyncClient'>
This is not our fault, but we could create a PR to OpenAI to try to fix it.
We should also allow
logfire.instrument_httpx(client)
So you can easily instrument one client but not all.
Python, Logfire & OS Versions, related packages (not required)
Description
Once I've run
if I then try to create an OpenAI client I get
This is not our fault, but we could create a PR to OpenAI to try to fix it.
We should also allow
So you can easily instrument one client but not all.
Python, Logfire & OS Versions, related packages (not required)
The text was updated successfully, but these errors were encountered: