mirror of
https://github.com/ollama/ollama-python.git
synced 2026-09-13 14:39:54 +00:00
add test case for explicit None
This commit is contained in:
@@ -45,6 +45,9 @@ class SubscriptableBaseModel(BaseModel):
|
|||||||
>>> msg['tool_calls'] = [Message.ToolCall(function=Message.ToolCall.Function(name='foo', arguments={}))]
|
>>> msg['tool_calls'] = [Message.ToolCall(function=Message.ToolCall.Function(name='foo', arguments={}))]
|
||||||
>>> 'tool_calls' in msg
|
>>> 'tool_calls' in msg
|
||||||
True
|
True
|
||||||
|
>>> msg['tool_calls'] = None
|
||||||
|
>>> 'tool_calls' in msg
|
||||||
|
True
|
||||||
>>> tool = Tool()
|
>>> tool = Tool()
|
||||||
>>> 'type' in tool
|
>>> 'type' in tool
|
||||||
True
|
True
|
||||||
|
|||||||
Reference in New Issue
Block a user