parent
172bb8e5b1
commit
52004c938b
|
@ -81,6 +81,16 @@ export default function Home() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (updatedConversation.messages.length === 1) {
|
||||||
|
const {content} = message
|
||||||
|
const customName = content.length > 30 ? content.substring(0, 30) + "..." : content;
|
||||||
|
|
||||||
|
updatedConversation = {
|
||||||
|
...updatedConversation,
|
||||||
|
name: customName
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
|
|
||||||
const reader = data.getReader();
|
const reader = data.getReader();
|
||||||
|
|
Loading…
Reference in New Issue