fix(chat): drop mistral models and harden title generation (#1498)
This commit is contained in:
parent
107a43a803
commit
2becdb4a56
2 changed files with 11 additions and 21 deletions
|
|
@ -244,9 +244,13 @@ export async function POST(request: Request) {
|
|||
);
|
||||
|
||||
if (titlePromise) {
|
||||
const title = await titlePromise;
|
||||
dataStream.write({ type: "data-chat-title", data: title });
|
||||
updateChatTitleById({ chatId: id, title });
|
||||
try {
|
||||
const title = await titlePromise;
|
||||
dataStream.write({ type: "data-chat-title", data: title });
|
||||
updateChatTitleById({ chatId: id, title });
|
||||
} catch (_) {
|
||||
/* non-fatal */
|
||||
}
|
||||
}
|
||||
},
|
||||
generateId: generateUUID,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue