fix(chat): drop mistral models and harden title generation (#1498)
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
josh 2026-05-18 15:08:46 +01:00 committed by GitHub
parent 107a43a803
commit 2becdb4a56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 21 deletions

View file

@ -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,

View file

@ -1,11 +1,11 @@
export const DEFAULT_CHAT_MODEL = "moonshotai/kimi-k2.5";
export const titleModel = {
id: "mistral/mistral-small",
name: "Mistral Small",
provider: "mistral",
id: "moonshotai/kimi-k2.5",
name: "Kimi K2.5",
provider: "moonshotai",
description: "Fast model for title generation",
gatewayOrder: ["mistral"],
gatewayOrder: ["fireworks", "bedrock"],
};
export type ModelCapabilities = {
@ -31,20 +31,6 @@ export const chatModels: ChatModel[] = [
description: "Fast and capable model with tool use",
gatewayOrder: ["bedrock", "deepinfra"],
},
{
id: "mistral/codestral",
name: "Codestral",
provider: "mistral",
description: "Code-focused model with tool use",
gatewayOrder: ["mistral"],
},
{
id: "mistral/mistral-small",
name: "Mistral Small",
provider: "mistral",
description: "Fast vision model with tool use",
gatewayOrder: ["mistral"],
},
{
id: "moonshotai/kimi-k2.5",
name: "Kimi K2.5",