mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
🌿 fix: forking a long conversation breaks chat structure (#4778)
* fix: branching and forking sometimes break conversation structure * fix test for forking. * chore: message type issues * test: add conversation structure tests for message handling --------- Co-authored-by: xyqyear <xyqyear@gmail.com>
This commit is contained in:
parent
7d5be68747
commit
c87a51eaab
8 changed files with 248 additions and 16 deletions
|
|
@ -445,12 +445,12 @@ export const tMessageSchema = z.object({
|
|||
bg: z.string().nullable().optional(),
|
||||
model: z.string().nullable().optional(),
|
||||
title: z.string().nullable().or(z.literal('New Chat')).default('New Chat'),
|
||||
sender: z.string(),
|
||||
sender: z.string().optional(),
|
||||
text: z.string(),
|
||||
generation: z.string().nullable().optional(),
|
||||
isEdited: z.boolean().optional(),
|
||||
isCreatedByUser: z.boolean(),
|
||||
error: z.boolean(),
|
||||
error: z.boolean().optional(),
|
||||
createdAt: z
|
||||
.string()
|
||||
.optional()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue