mirror of
https://github.com/ollama/ollama-python.git
synced 2026-05-03 12:52:35 +00:00
types: relax enum type for tool (#498)
This commit is contained in:
+2
-2
@@ -200,8 +200,8 @@ def test_function_with_only_description():
|
||||
assert tool['function']['parameters'] == {
|
||||
'type': 'object',
|
||||
'properties': {
|
||||
'x': {'type': 'integer', 'description': ''},
|
||||
'y': {'type': 'integer', 'description': ''},
|
||||
'x': {'type': 'integer', 'description': '', 'enum': None},
|
||||
'y': {'type': 'integer', 'description': '', 'enum': None},
|
||||
},
|
||||
'required': ['x', 'y'],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user