parent
844025ec14
commit
6885812d21
|
@ -154,8 +154,10 @@ export class GeminiProApi implements LLMApi {
|
||||||
let finished = false;
|
let finished = false;
|
||||||
|
|
||||||
const finish = () => {
|
const finish = () => {
|
||||||
|
if (!finished) {
|
||||||
finished = true;
|
finished = true;
|
||||||
options.onFinish(responseText + remainText);
|
options.onFinish(responseText + remainText);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// animate response to make it looks smooth
|
// animate response to make it looks smooth
|
||||||
|
|
Loading…
Reference in New Issue