Skip to content

Commit

Permalink
add empties back
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Mar 25, 2024
1 parent 8c1fe54 commit 9ae8d53
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 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 || "" ,
});

This comment has been minimized.

Copy link
@Keyrxng

Keyrxng Mar 25, 2024

Author Contributor

Empty string detected!


export const runtime = "node";
Expand Down
2 changes: 1 addition & 1 deletion app/components/dialogue.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from "react";
export default function DialogueBox({ title, content }) {
return (
<div>
<h2>{title}</h2>
<h2>{""}</h2>
<p>{content}</p>

This comment has been minimized.

Copy link
@Keyrxng

Keyrxng Mar 25, 2024

Author Contributor

Empty string detected!

</div>
);
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 === '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(
Expand Down
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({

This comment has been minimized.

Copy link
@Keyrxng

Keyrxng Mar 25, 2024

Author Contributor

Empty string detected!

Expand Down
2 changes: 1 addition & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function Dual() {
const { count, setCount } = useState(0);

return (
<div className="flex">
<div className="">
<div>
<h1>Count: {count}</h1>
<input onClick={() => setCount(count + 1)}>Increment</input>
Expand Down

1 comment on commit 9ae8d53

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty string detected!

Please sign in to comment.