mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-25 04:42:14 +00:00
ai: fix more null error
This commit is contained in:
parent
2c113018d2
commit
0fba075f52
1 changed files with 2 additions and 0 deletions
|
|
@ -487,6 +487,8 @@ Singleton {
|
|||
try {
|
||||
if (requester.geminiBuffer.length === 0) return;
|
||||
const dataJson = JSON.parse(requester.geminiBuffer);
|
||||
if (!dataJson.candidates) return;
|
||||
|
||||
if (dataJson.candidates[0]?.finishReason) {
|
||||
requester.markDone();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue