From 5bd7e28f82f6f61cbdf00ecca2ace50e3dccb495 Mon Sep 17 00:00:00 2001 From: glay Date: Mon, 25 Nov 2024 09:12:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89Debug=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/utils/aws.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/utils/aws.ts b/app/utils/aws.ts index 127e82cf9..1dd23d067 100644 --- a/app/utils/aws.ts +++ b/app/utils/aws.ts @@ -313,7 +313,7 @@ export function extractMessage(res: any, modelId: string = ""): string { console.error("[AWS Extract Error] extractMessage Empty response"); return ""; } - console.log("[Response] extractMessage response: ", res); + // console.log("[Response] extractMessage response: ", res); // Handle Mistral model response format if (modelId.toLowerCase().includes("mistral")) { @@ -347,8 +347,8 @@ export async function* transformBedrockStream( const parsed = parseEventData(value); if (!parsed) continue; - console.log("parseEventData========================="); - console.log(parsed); + // console.log("parseEventData========================="); + // console.log(parsed); // Handle Mistral models if (modelId.toLowerCase().includes("mistral")) { // If we have content, accumulate it @@ -357,8 +357,8 @@ export async function* transformBedrockStream( parsed.choices?.[0]?.message?.content ) { accumulatedText += parsed.choices?.[0]?.message?.content; - console.log("accumulatedText========================="); - console.log(accumulatedText); + // console.log("accumulatedText========================="); + // console.log(accumulatedText); // Check for tool call in the accumulated text if (!toolCallStarted && accumulatedText.includes("```json")) { const jsonMatch = accumulatedText.match(