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
This happens because the response object returned by OpenAI is a BaseModel from pydantic which isn't automatically JSON serializable.
It's unclear if a specific version of the OpenAI client library is expected beyond what's specified in requirements.txt. I've tested this with openai==1.78.1. But I believe this failure will occur for all recent versions of the openai client that return responses as pydantic models.
Possible Fix
Update response => response.model_dump() if it is a pydantic object in
Activity