Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr1sh1 committed Mar 27, 2024
1 parent 2e8b180 commit 990ed2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/respond.protected.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const handler: ServerlessFunctionSignature<TwilioEnvironmentVariables, Re
loop = false
console.log("Starting async iteration")
for await (const event of assistantStream) {
console.log("Event: ", event)
console.log("Event: ", event.event)
if (event.event === "thread.message.delta" && event.data.delta.content && event.data.delta.content[0].type === "text") {
const delta = event.data.delta.content[0].text?.value
if (!delta) continue
Expand Down

0 comments on commit 990ed2f

Please sign in to comment.