From 7830b37a9030d00a0a0c35451fa09086ae0efdcb Mon Sep 17 00:00:00 2001 From: glay Date: Sun, 8 Dec 2024 23:49:59 +0800 Subject: [PATCH] Enhance encryption security with additional safeguards. --- app/client/platforms/bedrock.ts | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/app/client/platforms/bedrock.ts b/app/client/platforms/bedrock.ts index 0368d71db..63de78347 100644 --- a/app/client/platforms/bedrock.ts +++ b/app/client/platforms/bedrock.ts @@ -583,24 +583,12 @@ export class BedrockApi implements LLMApi { } } - /** - * Usage tracking is not supported for Bedrock API. - * @throws {Error} Always throws an error indicating the operation is not supported. - */ async usage() { - throw new Error( - "Usage tracking is not supported for Bedrock API. Use AWS CloudWatch metrics instead." - ); + return { used: 0, total: 0 }; } - /** - * Model listing is not supported for Bedrock API. - * @throws {Error} Always throws an error indicating the operation is not supported. - */ async models() { - throw new Error( - "Model listing is not supported for Bedrock API. Configure available models in AWS Console." - ); + return []; } }