forked from Shinonome/dots-hyprland
ai: add null check (#1254)
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user