From ad1a180148697a1862c2d5e910f19930351c636e Mon Sep 17 00:00:00 2001 From: Lorenzo Mangani Date: Sat, 14 Dec 2024 15:39:38 +0100 Subject: [PATCH] Update index.ts --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 214567c..447f30f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -142,12 +142,12 @@ app.post("/", async (c) => { }, body: JSON.stringify({ messages, - stream: false, + stream: true, }), } ); - const newquery = await readStream(copilotLLMResponse); + const newquery = await readStream(copilotLLMResponse.body); console.log("LLM:", newquery); // Check if the message contains a SQL query