File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ def chat(
234
234
json = {
235
235
'model' : model ,
236
236
'messages' : messages ,
237
- 'tools' : tools ,
237
+ 'tools' : tools or [] ,
238
238
'stream' : stream ,
239
239
'format' : format ,
240
240
'options' : options or {},
@@ -625,7 +625,7 @@ async def chat(
625
625
json = {
626
626
'model' : model ,
627
627
'messages' : messages ,
628
- 'tools' : tools ,
628
+ 'tools' : tools or [] ,
629
629
'stream' : stream ,
630
630
'format' : format ,
631
631
'options' : options or {},
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ class Message(TypedDict):
99
99
100
100
tool_calls : NotRequired [Sequence [ToolCall ]]
101
101
"""
102
- Tools calls to be made by the model.
102
+ Tools calls to be made by the model.
103
103
"""
104
104
105
105
You can’t perform that action at this time.
0 commit comments