mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
ai: add null check (#1254)
This commit is contained in:
parent
a763c4148a
commit
2d45a9e9f6
1 changed files with 1 additions and 0 deletions
|
|
@ -143,6 +143,7 @@ class GPTMessage extends Service {
|
||||||
}
|
}
|
||||||
|
|
||||||
addDelta(delta) {
|
addDelta(delta) {
|
||||||
|
if (delta == null) return;
|
||||||
if (this.thinking) {
|
if (this.thinking) {
|
||||||
this.thinking = false;
|
this.thinking = false;
|
||||||
this.content = delta;
|
this.content = delta;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue