Skip to content

Commit

Permalink
fix: correct naming
Browse files Browse the repository at this point in the history
  • Loading branch information
zzulanas committed Jun 20, 2023
1 parent 1161f05 commit e0cd48a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/search-func.ts → app/api/search-func/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const openai = new OpenAIApi(config);

export const runtime = "edge";

export default async function handler(req: NextRequest) {
export async function POST(req: NextRequest) {
try {
if (!openAiKey) {
throw new ApplicationError("Missing environment variable OPENAI_KEY");
Expand Down

1 comment on commit e0cd48a

@vercel
Copy link

@vercel vercel bot commented on e0cd48a Jun 20, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

zzulanas-dev – ./

zzulanas-dev.vercel.app
zzulanas-dev-git-main-zzulanas.vercel.app
zzulanas-dev-zzulanas.vercel.app

Please sign in to comment.