Fix BaseModel method name conflicts in func_metadata (#1123)
This commit is contained in:
parent
d28a1a69ee
commit
49991fd2c7
1 changed files with 147 additions and 9 deletions
|
|
@ -73,7 +73,7 @@ class Tool(BaseModel):
|
|||
skip_names=[context_kwarg] if context_kwarg is not None else [],
|
||||
structured_output=structured_output,
|
||||
)
|
||||
parameters = func_arg_metadata.arg_model.model_json_schema()
|
||||
parameters = func_arg_metadata.arg_model.model_json_schema(by_alias=True)
|
||||
|
||||
return cls(
|
||||
fn=fn,
|
||||
|
|
|
|||
Loading…
Reference in a new issue