nsarrazin HF Staff commited on
Commit
911700d
·
1 Parent(s): f277bb8

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 (event.type !== "stream") {
 
 
 
 
 
 
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