Skip to content

Commit

Permalink
Chore: key에 NEXT_PUBLIC 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
dongree committed Aug 13, 2023
1 parent ae98e67 commit b196360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/api/generate/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Configuration, OpenAIApi } from 'openai-edge';
import { OpenAIStream, StreamingTextResponse } from 'ai';

const config = new Configuration({
apiKey: process.env.OPENAI_API_KEY,
apiKey: process.env.NEXT_PUBLIC_OPENAI_API_KEY,
});
const openai = new OpenAIApi(config);

Expand Down

0 comments on commit b196360

Please sign in to comment.