From 56dc0e5ae39ab860e6390e24c548f9b7b86660b2 Mon Sep 17 00:00:00 2001 From: Hoang Vo Date: Thu, 7 Nov 2024 22:28:19 +0700 Subject: [PATCH] chore: lint fix --- javascript/examples/stream-audio.ts | 2 +- javascript/examples/stream-text.ts | 2 +- javascript/examples/stream-tool-use.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/javascript/examples/stream-audio.ts b/javascript/examples/stream-audio.ts index 07f60ee..daf02a0 100644 --- a/javascript/examples/stream-audio.ts +++ b/javascript/examples/stream-audio.ts @@ -3,7 +3,7 @@ import { openaiAudioModel } from "./model.js"; let speaker: Speaker | undefined; -const response = await openaiAudioModel.stream({ +const response = openaiAudioModel.stream({ extra: { audio: { voice: "alloy", diff --git a/javascript/examples/stream-text.ts b/javascript/examples/stream-text.ts index 10fd822..554804b 100644 --- a/javascript/examples/stream-text.ts +++ b/javascript/examples/stream-text.ts @@ -1,6 +1,6 @@ import { openaiModel as model } from "./model.js"; -const response = await model.stream({ +const response = model.stream({ messages: [ { role: "user", diff --git a/javascript/examples/stream-tool-use.ts b/javascript/examples/stream-tool-use.ts index 15af511..b246368 100644 --- a/javascript/examples/stream-tool-use.ts +++ b/javascript/examples/stream-tool-use.ts @@ -1,6 +1,6 @@ import { openaiModel as model } from "./model.js"; -const response = await model.stream({ +const response = model.stream({ messages: [ { role: "user",