Skip to content

Commit

Permalink
fix ask keeping sources from previous run
Browse files Browse the repository at this point in the history
  • Loading branch information
Southclaws committed Dec 28, 2024
1 parent f211260 commit 5d5faf0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/src/screens/ask/AskScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ export function Ask() {
throw new Error(`Error: response is empty`);
}

setSources({});

const reader = response.body.getReader();
const decoder = new TextDecoder("utf-8");
let done = false;
Expand Down

0 comments on commit 5d5faf0

Please sign in to comment.