From 1efc3c6d1e6874d35e8c4e5e8d1bebd58de05a16 Mon Sep 17 00:00:00 2001 From: felipeb Date: Tue, 28 Jan 2025 21:42:17 -0300 Subject: [PATCH] fix: Chatgpt4o-mini dependecy --- app/(chat)/actions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/(chat)/actions.ts b/app/(chat)/actions.ts index e0f8771b4..9d2264ed7 100644 --- a/app/(chat)/actions.ts +++ b/app/(chat)/actions.ts @@ -2,7 +2,7 @@ import { type CoreUserMessage, generateText, Message } from 'ai'; import { cookies } from 'next/headers'; - +import { DEFAULT_MODEL_NAME } from '@/lib/ai/models'; import { customModel } from '@/lib/ai'; import { deleteMessagesByChatIdAfterTimestamp, @@ -22,7 +22,7 @@ export async function generateTitleFromUserMessage({ message: Message; }) { const { text: title } = await generateText({ - model: customModel('gpt-4o-mini'), + model: customModel(DEFAULT_MODEL_NAME), system: `\n - you will generate a short title based on the first message a user begins a conversation with - ensure it is not more than 80 characters long