Skip to content

Commit

Permalink
fix: llama
Browse files Browse the repository at this point in the history
  • Loading branch information
Googlefan committed May 24, 2024
1 parent 8ad7e44 commit 029f241
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/chat/llama.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ async function* generate(chat: Chat[], system?: string) {
},
body: JSON.stringify(chat),
});
res.body.setEncoding("utf-8");
const data = JSON.parse(await res.body.text());
yield {
tokens: data.tokens,
Expand Down

0 comments on commit 029f241

Please sign in to comment.