mirror of
https://github.com/kharonsec/ollama-python
synced 2026-04-25 15:14:55 +02:00
types: allow single or multiple types tool property (#499)
This commit is contained in:
@@ -313,7 +313,7 @@ class Tool(SubscriptableBaseModel):
|
||||
class Property(SubscriptableBaseModel):
|
||||
model_config = ConfigDict(arbitrary_types_allowed=True)
|
||||
|
||||
type: Optional[str] = None
|
||||
type: Optional[Union[str, Sequence[str]]] = None
|
||||
description: Optional[str] = None
|
||||
enum: Optional[Sequence] = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user