Remove detailed error error message.

This commit is contained in:
glay
2024-11-26 11:57:49 +08:00
parent 9c648e5b64
commit 8ce2cf5c3b
3 changed files with 9 additions and 12 deletions

View File

@@ -228,14 +228,14 @@ export class BedrockApi implements LLMApi {
const headers = getHeaders();
headers.XModelID = modelConfig.model;
headers.XEncryptionKey = accessStore.encryptionKey;
console.log("[Bedrock Client] Request:", {
path: chatPath,
model: modelConfig.model,
messages: messages.length,
stream: shouldStream,
});
if (process.env.NODE_ENV !== "production") {
console.debug("[Bedrock Client] Request:", {
path: chatPath,
model: modelConfig.model,
messages: messages.length,
stream: shouldStream,
});
}
const finalRequestBody = this.formatRequestBody(messages, modelConfig);
console.log(
"[Bedrock Client] Request Body:",