Skip to content

Commit

Permalink
remove prev caught empties
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Mar 25, 2024
1 parent 10adf2b commit 50672c4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/api/chat-with-functions/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 || ,
});

export const runtime = "node";
Expand Down
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 || "",
apiKey: process.env.OP,
});

export const runtime = "edge";
Expand Down
2 changes: 1 addition & 1 deletion app/components/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Link from "next/link";
export default function NavBar() {
return (
<div className="flex items-center p-4 justify-center text-center gap-14 ">
<Link className="text-2xl font-bold" href="">
<Link className="text-2xl font-bold" href="/">
Chat
</Link>
<Link className="text-2xl font-bold" href="/docs">
Expand Down
2 changes: 1 addition & 1 deletion app/function-calling/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function Chat() {
chatMessages,
functionCall
) => {
if (functionCall.name === "") {
if (functionCall.name === "eval_code_in_browser") {
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(
Expand Down

0 comments on commit 50672c4

Please sign in to comment.