Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jul 11, 2024
2 parents 8be895c + ba6039f commit 27ea973
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/client/platforms/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,10 @@ export class GeminiProApi implements LLMApi {
let finished = false;

const finish = () => {
finished = true;
options.onFinish(responseText + remainText);
if (!finished) {
finished = true;
options.onFinish(responseText + remainText);
}
};

// animate response to make it looks smooth
Expand Down

0 comments on commit 27ea973

Please sign in to comment.