Skip to content

Commit

Permalink
Extract the right parameter for metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoseley committed Jul 20, 2024
1 parent 2ed583d commit c8380a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/streaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export async function processStream<Metadata extends Record<string, unknown>>(
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);
Expand Down

0 comments on commit c8380a0

Please sign in to comment.