From f5d88e86a742bf1987112f9a949f726f811443ed Mon Sep 17 00:00:00 2001 From: Amery2010 Date: Mon, 10 Feb 2025 11:51:10 +0800 Subject: [PATCH] fix: Fix the problem of abnormal functionCall variable judgment --- app/api/chat/route.ts | 1 - app/page.tsx | 2 +- components/AppSidebar.tsx | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/api/chat/route.ts b/app/api/chat/route.ts index eb8d477..0523e10 100644 --- a/app/api/chat/route.ts +++ b/app/api/chat/route.ts @@ -19,7 +19,6 @@ export async function POST(req: NextRequest) { try { let url = `${geminiApiBaseUrl || GEMINI_API_BASE_URL}/${version}/models/${model}` if (!model.startsWith('imagen')) url += '?alt=sse' - console.log(url) const response = await fetch(url, { method: 'POST', headers: { diff --git a/app/page.tsx b/app/page.tsx index f7abc8f..24ac528 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -980,7 +980,7 @@ export default function Home() {
diff --git a/components/AppSidebar.tsx b/components/AppSidebar.tsx index 49f7b46..dfb6dbb 100644 --- a/components/AppSidebar.tsx +++ b/components/AppSidebar.tsx @@ -184,7 +184,7 @@ function ConversationItem(props: Props) { let mdContentList: string[] = [] const wrapJsonCode = (content: string) => { - return `\`\`\`json \n${content} \n\`\`\`` + return `\`\`\`json\n${content}\n\`\`\`` } if (conversation.systemInstruction) {