Commit c80fe336

Robert Craigie <robert@craigie.dev>
2024-07-10 17:55:35
fix(threads/runs/create_and_run_stream): correct tool_resources param
1 parent e0ed37c
Changed files (1)
src
openai
resources
beta
threads
src/openai/resources/beta/threads/threads.py
@@ -1062,7 +1062,7 @@ class Threads(SyncAPIResource):
                     "stream": True,
                     "thread": thread,
                     "tools": tools,
-                    "tool": tool_resources,
+                    "tool_resources": tool_resources,
                     "truncation_strategy": truncation_strategy,
                     "top_p": top_p,
                 },
@@ -2082,7 +2082,7 @@ class AsyncThreads(AsyncAPIResource):
                     "stream": True,
                     "thread": thread,
                     "tools": tools,
-                    "tool": tool_resources,
+                    "tool_resources": tool_resources,
                     "truncation_strategy": truncation_strategy,
                     "top_p": top_p,
                 },