From 10adf2ba81bd4158e9a7f25cf7490eb59db9e6dc Mon Sep 17 00:00:00 2001 From: Keyrxng <106303466+Keyrxng@users.noreply.github.com> Date: Mon, 25 Mar 2024 13:52:01 +0000 Subject: [PATCH 01/12] add empties --- app/api/chat-with-functions/route.ts | 2 +- app/api/chat/route.ts | 2 +- app/components/navbar.tsx | 2 +- app/function-calling/page.tsx | 30 ++++++++++++++-------------- app/tri-display/layout.tsx | 2 +- app/tri-display/page.tsx | 2 +- 6 files changed, 20 insertions(+), 20 deletions(-) diff --git a/app/api/chat-with-functions/route.ts b/app/api/chat-with-functions/route.ts index e4227b3..9c54443 100644 --- a/app/api/chat-with-functions/route.ts +++ b/app/api/chat-with-functions/route.ts @@ -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 || "" , }); export const runtime = "node"; diff --git a/app/api/chat/route.ts b/app/api/chat/route.ts index 3eeba50..7bc0f8e 100644 --- a/app/api/chat/route.ts +++ b/app/api/chat/route.ts @@ -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 || "", }); export const runtime = "edge"; diff --git a/app/components/navbar.tsx b/app/components/navbar.tsx index 425c78a..6b92ef9 100644 --- a/app/components/navbar.tsx +++ b/app/components/navbar.tsx @@ -3,7 +3,7 @@ import Link from "next/link"; export default function NavBar() { return (