This commit is contained in:
GH Action - Upstream Sync 2024-07-11 00:58:47 +00:00
commit 59e1449b2f
1 changed files with 4 additions and 2 deletions

View File

@ -154,8 +154,10 @@ export class GeminiProApi implements LLMApi {
let finished = false; let finished = false;
const finish = () => { const finish = () => {
finished = true; if (!finished) {
options.onFinish(responseText + remainText); finished = true;
options.onFinish(responseText + remainText);
}
}; };
// animate response to make it looks smooth // animate response to make it looks smooth