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 c6eeb22 + ba6039f commit 0556299
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 0556299

Please sign in to comment.