From c8380a09ec87051e5f5bdb847999e83c7a5778bd Mon Sep 17 00:00:00 2001 From: Jeremy Moseley Date: Sat, 20 Jul 2024 09:19:52 -0700 Subject: [PATCH] Extract the right parameter for metadata. --- utils/streaming.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/streaming.ts b/utils/streaming.ts index f1fbc9c..fa57489 100644 --- a/utils/streaming.ts +++ b/utils/streaming.ts @@ -46,7 +46,7 @@ export async function processStream>( else if (json.messageType === "status" && statusStream) { statusStream.push(line + "\n"); } else if (json.messageType === "metadata") { - metadata = json.metadata; + metadata = json.data; } } catch (e) { console.error("Error parsing JSON:", e);