mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-15 05:19:58 -05:00
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