Skip to content

Commit

Permalink
Update route.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng authored Mar 21, 2024
1 parent 004c051 commit a4f4368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/chat/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import OpenAI from "openai";
import { OpenAIStream, StreamingTextResponse } from "ai";

const openai = new OpenAI({
apiKey: process.env.OPENAI_API_KEY || "",
apiKey: process.env.OPENAI_API_KEY || null,
});

export const runtime = "edge";
Expand Down

0 comments on commit a4f4368

Please sign in to comment.