mirror of
https://github.com/ollama/ollama-python.git
synced 2026-11-11 18:20:42 +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