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.
This commit is contained in:
AC 2025-04-06 17:04:55 +08:00
parent 4093e4c500
commit a5caf98db0

View File

@ -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,