mirror of
https://github.com/ollama/ollama-python.git
synced 2026-08-25 05:59:52 +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={}))]
|
||||
>>> 'tool_calls' in msg
|
||||
True
|
||||
>>> msg['tool_calls'] = None
|
||||
>>> 'tool_calls' in msg
|
||||
True
|
||||
>>> tool = Tool()
|
||||
>>> 'type' in tool
|
||||
True
|
||||
|
||||
Reference in New Issue
Block a user