Skip to content

Commit

Permalink
Fix CI build issue due to missing OpenAI key
Browse files Browse the repository at this point in the history
  • Loading branch information
unstubbable committed Mar 22, 2024
1 parent 76915c9 commit aecde2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/next-ai-rsc-basic/app/action.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ interface UIStateItem {
readonly display: React.ReactNode;
}

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

async function getFlightInfo(flightNumber: string): Promise<FlightInfo> {
return {
Expand Down

0 comments on commit aecde2e

Please sign in to comment.