Skip to content

Commit 03d0497

Browse files
committed
fix: handle ping in action switch.
1 parent 6cce31d commit 03d0497

File tree

1 file changed

+8
-0
lines changed
  • apps/dashboard/src/app/nebula-app/(app)/api

1 file changed

+8
-0
lines changed

apps/dashboard/src/app/nebula-app/(app)/api/chat.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ export async function promptNebula(params: {
202202
break;
203203
}
204204

205+
case "ping": {
206+
break;
207+
}
208+
205209
default: {
206210
console.warn("unhandled event", event);
207211
}
@@ -298,4 +302,8 @@ type ChatStreamedEvent =
298302
| {
299303
event: "error";
300304
data: string;
305+
}
306+
| {
307+
event: "ping";
308+
data: string;
301309
};

0 commit comments

Comments
 (0)