Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/mistralai/extra/utils/_pydantic_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ def rec_strict_json_schema(schema_node: Any) -> Any:
elif isinstance(schema_node, list):
for i, value in enumerate(schema_node):
schema_node[i] = rec_strict_json_schema(value)
elif not schema_node:
pass
else:
raise ValueError(f"Unexpected type: {schema_node}")
return schema_node