Spaces:
Sleeping
Sleeping
fix: dont save keep alive updates to db
Browse files
src/routes/conversation/[id]/+server.ts
CHANGED
@@ -387,7 +387,13 @@ export async function POST({ request, locals, params, getClientAddress }) {
|
|
387 |
}
|
388 |
|
389 |
// Append to the persistent message updates if it's not a stream update
|
390 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
|
|
391 |
messageToWriteTo?.updates?.push(event);
|
392 |
}
|
393 |
|
|
|
387 |
}
|
388 |
|
389 |
// Append to the persistent message updates if it's not a stream update
|
390 |
+
if (
|
391 |
+
event.type !== MessageUpdateType.Stream &&
|
392 |
+
!(
|
393 |
+
event.type === MessageUpdateType.Status &&
|
394 |
+
event.status === MessageUpdateStatus.KeepAlive
|
395 |
+
)
|
396 |
+
) {
|
397 |
messageToWriteTo?.updates?.push(event);
|
398 |
}
|
399 |
|