Skip to content

Commit

Permalink
feat(agent): parser ignores empty chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas2D committed Sep 12, 2024
1 parent 19f11cf commit cbceb87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/agents/bee/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class BeeOutputParser {
}

async add(chunk: string) {
if (this.isDone) {
if (this.isDone || !chunk) {
return;
}

Expand Down

0 comments on commit cbceb87

Please sign in to comment.