Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8effd08

Browse files
committedJul 10, 2024
fix(threads/runs/create_and_run_stream): correct tool_resources param
1 parent e0ed37c commit 8effd08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/openai/resources/beta/threads/threads.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ def create_and_run_stream(
10621062
"stream": True,
10631063
"thread": thread,
10641064
"tools": tools,
1065-
"tool": tool_resources,
1065+
"tool_resources": tool_resources,
10661066
"truncation_strategy": truncation_strategy,
10671067
"top_p": top_p,
10681068
},
@@ -2082,7 +2082,7 @@ def create_and_run_stream(
20822082
"stream": True,
20832083
"thread": thread,
20842084
"tools": tools,
2085-
"tool": tool_resources,
2085+
"tool_resources": tool_resources,
20862086
"truncation_strategy": truncation_strategy,
20872087
"top_p": top_p,
20882088
},

0 commit comments

Comments
 (0)
Please sign in to comment.