From a5caf98db0f15e00f081f836de982f77085775ec Mon Sep 17 00:00:00 2001 From: AC Date: Sun, 6 Apr 2025 17:04:55 +0800 Subject: [PATCH] Enhance Bedrock API Logging for Request Details - Updated logging in the Bedrock API handler to include detailed information about the request model, stream status, and message count for improved debugging and monitoring. --- app/api/bedrock/index.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/api/bedrock/index.ts b/app/api/bedrock/index.ts index 4f8320400..d716ca595 100644 --- a/app/api/bedrock/index.ts +++ b/app/api/bedrock/index.ts @@ -77,7 +77,14 @@ export async function handle( }); const body = await req.json(); - console.log("[Bedrock] request body: ", body); + console.log( + "[Bedrock] Request - Model:", + body.model, + "Stream:", + body.stream, + "Messages count:", + body.messages.length, + ); const { messages,