ai: add null check (#1254)

This commit is contained in:
end-4 2025-04-29 19:30:54 +02:00
parent a763c4148a
commit 2d45a9e9f6

View file

@ -143,6 +143,7 @@ class GPTMessage extends Service {
}
addDelta(delta) {
if (delta == null) return;
if (this.thinking) {
this.thinking = false;
this.content = delta;