spellcheck

This commit is contained in:
vbarda
2024-06-18 12:16:01 -04:00
parent 5b72a3f210
commit 52395d2e1a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ const agent = assistants[0];
const thread = await client.threads.create();
// Start a streaming run
const messages = [{ role: "human", content: "whats the weather in la" }];
const messages = [{ role: "human", content: "what's the weather in la" }];
const streamResponse = client.runs.stream(
thread["thread_id"],
+1 -1
View File
@@ -29,7 +29,7 @@ agent = assistants[0]
thread = await client.threads.create()
# Start a streaming run
input = {"messages": [{"role": "human", "content": "whats the weather in la"}]}
input = {"messages": [{"role": "human", "content": "what's the weather in la"}]}
async for chunk in client.runs.stream(thread['thread_id'], agent['assistant_id'], input=input):
print(chunk)
```