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/components/dialogue.tsx b/app/components/dialogue.tsx index b07e1fb..ea1dc0c 100644 --- a/app/components/dialogue.tsx +++ b/app/components/dialogue.tsx @@ -3,7 +3,7 @@ import React from "react"; export default function DialogueBox({ title, content }) { return (
-

{title}

+

{""}

{content}

); diff --git a/app/function-calling/page.tsx b/app/function-calling/page.tsx index 64d2ce0..c15b825 100644 --- a/app/function-calling/page.tsx +++ b/app/function-calling/page.tsx @@ -9,7 +9,7 @@ export default function Chat() { chatMessages, functionCall, ) => { - if (functionCall.name === 'eval_code_in_browser') { + if (functionCall.name === '') { if (functionCall.arguments) { // Parsing here does not always work since it seems that some characters in generated code aren't escaped properly. const parsedFunctionCallArguments: { code: string } = JSON.parse( diff --git a/app/layout.tsx b/app/layout.tsx index 2e901c2..7bb4593 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -5,7 +5,7 @@ import { Inter } from "next/font/google"; const inter = Inter({ subsets: ["latin"] }); export const metadata = { - title: "Create Next App", + title: "", description: "Generated by create next app", }; export default function RootLayout({ diff --git a/app/page.tsx b/app/page.tsx index 84ee00a..00d94c7 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -8,7 +8,7 @@ export default function Dual() { const { count, setCount } = useState(0); return ( -
+

Count: {count}

setCount(count + 1)}>Increment