mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
refac: support list in json schema to pydantic
This commit is contained in:
parent
63c0772135
commit
025f0f390e
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ def json_schema_to_pydantic_type(json_schema: dict[str, Any]) -> Any:
|
|||
return float
|
||||
elif type_ == "boolean" or type_ == "bool":
|
||||
return bool
|
||||
elif type_ == "array":
|
||||
elif type_ == "array" or type_ == "list":
|
||||
items_schema = json_schema.get("items")
|
||||
if items_schema:
|
||||
item_type = json_schema_to_pydantic_type(items_schema)
|
||||
|
|
|
|||
Loading…
Reference in a new issue