Skip to content

Commit

Permalink
fix: openai model
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin-Umali committed Sep 22, 2024
1 parent 6440050 commit d96eda8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/src/utils/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ const environmentSchema = z.object({
"gpt-4-32k-0613",
"gpt-4o-2024-05-13",
"gpt-4o",
"gpt-4o-mini",
"openai-o1-preview",
"openai-o1-mini",
])
.refine((value) => {
if (["gpt-3.5-turbo-16k", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-16k-0613"].includes(value)) {
Expand All @@ -33,7 +36,7 @@ const environmentSchema = z.object({

return true;
})
.default("gpt-3.5-turbo-0613"),
.default("gpt-4o-mini"),
WEBSITE_URL: z.string(),
UNSPLASH_ACCESS_KEY: z.string(),
UNSPLASH_SECRET_KEY: z.string(),
Expand Down

1 comment on commit d96eda8

@vercel
Copy link

@vercel vercel bot commented on d96eda8 Sep 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.