Skip to content
Open
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: 1 addition & 1 deletion src/mistralai/extra/utils/_pydantic_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def rec_strict_json_schema(schema_node: Any) -> Any:
Recursively set the additionalProperties property to False for all objects in the JSON Schema.
This makes the JSON Schema strict (i.e. no additional properties are allowed).
"""
if isinstance(schema_node, (str, bool)) or schema_node is None:
if isinstance(schema_node, (str, bool, int)) or schema_node is None:
return schema_node
if isinstance(schema_node, dict):
if "type" in schema_node and schema_node["type"] == "object":
Expand Down