From 91e436098ba851f923b3c40e3f987aec8a84037b Mon Sep 17 00:00:00 2001 From: Santthosh Selvadurai Date: Mon, 13 May 2024 20:28:23 -0700 Subject: [PATCH] #55 Adding gpt-4o support and minor fixes on the layout --- prisma/seed.ts | 20 ++++++++++++++++++++ src/app/assistants/[id]/layout.tsx | 4 ++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/prisma/seed.ts b/prisma/seed.ts index e73f087..4ea5316 100644 --- a/prisma/seed.ts +++ b/prisma/seed.ts @@ -121,6 +121,26 @@ async function main() { }, }); + const gpt4o = await prisma.model.upsert({ + where: { id: 'gpt-4o' }, + update: { + features: { + retrieval: true, + } as Prisma.JsonObject, + }, + create: { + id: 'gpt-4o', + name: 'GPT-4 Omni', + description: + 'GPT-4o, OpenAI\'s new flagship model that can reason across audio, vision, and text in real time', + url: 'https://openai.com/index/hello-gpt-4o/', + providerId: 'openai', + features: { + retrieval: true, + } as Prisma.JsonObject, + }, + }); + const geminipro = await prisma.model.upsert({ where: { id: 'gemini-1.5-pro-latest' }, update: { diff --git a/src/app/assistants/[id]/layout.tsx b/src/app/assistants/[id]/layout.tsx index 92d505b..01530a4 100644 --- a/src/app/assistants/[id]/layout.tsx +++ b/src/app/assistants/[id]/layout.tsx @@ -44,14 +44,14 @@ export default function AssistantsLayout({ >
{children}