Skip to content

Commit a54d8f2

Browse files
committed
fix ollama stream
1 parent 8fd7d49 commit a54d8f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/chat/send.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,7 @@ async function ollamaRequest(
6464

6565
console.log(response.message.content);
6666

67-
stream.markdown(response.message.content);
67+
for await (const fragment of response.message.content) {
68+
stream.markdown(fragment);
69+
}
6870
}

0 commit comments

Comments
 (0)