Skip to content

Commit

Permalink
#55 Adding gpt-4o support and minor fixes on the layout
Browse files Browse the repository at this point in the history
  • Loading branch information
santthosh committed May 14, 2024
1 parent 399e18f commit 91e4360
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions prisma/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
4 changes: 2 additions & 2 deletions src/app/assistants/[id]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ export default function AssistantsLayout({
>
<div
className={
'm-2 items-center justify-center xs:col-span-12 sm:col-span-4 md:col-span-4 xl:col-span-3'
'm-2 items-center justify-center col-span-12 sm:col-span-4 md:col-span-4 xl:col-span-3'
}
>
<SideNavigation />
</div>
<div
className={
'm-4 items-center justify-center xs:col-span-12 sm:col-span-8 md:col-span-8 xl:col-span-9'
'm-4 items-center justify-center col-span-12 sm:col-span-8 md:col-span-8 xl:col-span-9'
}
>
{children}
Expand Down

0 comments on commit 91e4360

Please sign in to comment.