mirror of
https://github.com/ollama/ollama-python.git
synced 2026-09-29 21:57:23 +00:00
Add tool.model_validate
This commit is contained in:
+1
-1
@@ -100,4 +100,4 @@ def convert_function_to_tool(func: Callable) -> Tool:
|
||||
)
|
||||
)
|
||||
|
||||
return tool
|
||||
return Tool.model_validate(tool)
|
||||
|
||||
Reference in New Issue
Block a user