diff --git a/src/components/thread/messages/human.tsx b/src/components/thread/messages/human.tsx index e20f405..3e9393b 100644 --- a/src/components/thread/messages/human.tsx +++ b/src/components/thread/messages/human.tsx @@ -49,17 +49,8 @@ export function HumanMessage({ const handleSubmitEdit = () => { setIsEditing(false); thread.submit( - { - messages: [ - { - ...message, - content: value, - }, - ], - }, - { - checkpoint: parentCheckpoint, - }, + { messages: [{ type: "human", content: value }] }, + { checkpoint: parentCheckpoint }, ); };