Unverified Commit 2babac0b authored by cjackal's avatar cjackal Committed by GitHub
Browse files

[frontend] dump openai responses type by alias (#38262)


Signed-off-by: default avatarcjackal <44624812+cjackal@users.noreply.github.com>
parent 7cc302dd
......@@ -105,8 +105,8 @@ def serialize_message(msg):
elif hasattr(msg, "to_dict"):
return msg.to_dict()
else:
# fallback to pyandic dump
return msg.model_dump_json()
# fallback to pydantic dump
return msg.model_dump_json(by_alias=True)
def serialize_messages(msgs):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment