Skip to content

Commit f4df49e

Browse files
authored
Merge pull request open-webui#4953 from open-webui/dev
fix: support list in json schema to pydantic
2 parents 0c0a860 + bc6d06b commit f4df49e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: backend/utils/schemas.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def json_schema_to_pydantic_type(json_schema: dict[str, Any]) -> Any:
8383
return float
8484
elif type_ == "boolean" or type_ == "bool":
8585
return bool
86-
elif type_ == "array":
86+
elif type_ == "array" or type_ == "list":
8787
items_schema = json_schema.get("items")
8888
if items_schema:
8989
item_type = json_schema_to_pydantic_type(items_schema)

0 commit comments

Comments
 (0)