mirror of
https://github.com/ollama/ollama-python.git
synced 2026-05-01 11:48:17 +08:00
Merge bd49f558dd into 60e7b2f9ce
This commit is contained in:
commit
c0bfc89389
@ -342,14 +342,14 @@ class Tool(SubscriptableBaseModel):
|
|||||||
description: Optional[str] = None
|
description: Optional[str] = None
|
||||||
|
|
||||||
class Parameters(SubscriptableBaseModel):
|
class Parameters(SubscriptableBaseModel):
|
||||||
model_config = ConfigDict(populate_by_name=True)
|
model_config = ConfigDict(populate_by_name=True, extra='allow')
|
||||||
type: Optional[Literal['object']] = 'object'
|
type: Optional[Literal['object']] = 'object'
|
||||||
defs: Optional[Any] = Field(None, alias='$defs')
|
defs: Optional[Any] = Field(None, alias='$defs')
|
||||||
items: Optional[Any] = None
|
items: Optional[Any] = None
|
||||||
required: Optional[Sequence[str]] = None
|
required: Optional[Sequence[str]] = None
|
||||||
|
|
||||||
class Property(SubscriptableBaseModel):
|
class Property(SubscriptableBaseModel):
|
||||||
model_config = ConfigDict(arbitrary_types_allowed=True)
|
model_config = ConfigDict(arbitrary_types_allowed=True, extra='allow')
|
||||||
|
|
||||||
type: Optional[Union[str, Sequence[str]]] = None
|
type: Optional[Union[str, Sequence[str]]] = None
|
||||||
items: Optional[Any] = None
|
items: Optional[Any] = None
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user