Skip to content

Conversation

@leawn
Copy link
Contributor

@leawn leawn commented Mar 13, 2025

Some external changes (possibly some updates to OpenAI API response structure) lead to having:
Error serializing to JSON: TypeError: 'MockValSer' object cannot be converted to 'SchemaSerializer'
error for current examples. That means that pydantic cannot convert the response automatically but is fixed by using a built-in method from pydantic model_dump for proper response serialization

@restack-app
Copy link

restack-app bot commented Mar 13, 2025

No applications have been configured for previews targeting branch: main. To do so go to restack console and configure your applications for previews.

@leawn leawn merged commit 976707d into main Mar 13, 2025
@leawn leawn deleted the fix-pydantic-serialization branch March 13, 2025 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants