Skip to content

Commit 4b8c40e

Browse files
committed
tests
1 parent 5d121a9 commit 4b8c40e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ollama/_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def chat(
234234
json={
235235
'model': model,
236236
'messages': messages,
237-
'tools': tools,
237+
'tools': tools or [],
238238
'stream': stream,
239239
'format': format,
240240
'options': options or {},
@@ -625,7 +625,7 @@ async def chat(
625625
json={
626626
'model': model,
627627
'messages': messages,
628-
'tools': tools,
628+
'tools': tools or [],
629629
'stream': stream,
630630
'format': format,
631631
'options': options or {},

ollama/_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class Message(TypedDict):
9999

100100
tool_calls: NotRequired[Sequence[ToolCall]]
101101
"""
102-
Tools calls to be made by the model.
102+
Tools calls to be made by the model.
103103
"""
104104

105105

0 commit comments

Comments
 (0)