This commit is contained in:
Logan Cusano
2024-08-17 19:27:48 -04:00
parent 11b3504f28
commit ebf48c7618
2 changed files with 7 additions and 8 deletions

View File

@@ -197,12 +197,11 @@ let eventHandler;
async submitToolOutputs(toolOutputs, runId, threadId) {
try {
const stream =
this.client.beta.threads.runs.submitToolOutputsStream(
threadId,
runId,
{ tool_outputs: toolOutputs },
);
const stream = this.client.beta.threads.runs.submitToolOutputsStream(
threadId,
runId,
{ tool_outputs: toolOutputs },
);
for await (const event of stream) {
this.emit("event", event);
}