Skip to content

Commit

Permalink
fix: node-fetch for ai
Browse files Browse the repository at this point in the history
  • Loading branch information
Innei committed Sep 22, 2023
1 parent e0cab2f commit 0078d79
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ let nextConfig = {
config.externals.push({
'utf-8-validate': 'commonjs utf-8-validate',
bufferutil: 'commonjs bufferutil',
'node-fetch': 'commonjs node-fetch',
})

// if (
Expand Down
1 change: 0 additions & 1 deletion src/app/api/ai/summary/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { apiClient } from '~/lib/request'

const openai = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
fetch,
})

export const GET = async (req: NextRequest) => {
Expand Down

1 comment on commit 0078d79

@vercel
Copy link

@vercel vercel bot commented on 0078d79 Sep 22, 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:

shiro – ./

springtide.vercel.app
shiro-innei.vercel.app
shiro-git-main-innei.vercel.app
innei.in

Please sign in to comment.