Enhance encryption security with additional safeguards.

This commit is contained in:
glay 2024-12-08 23:49:59 +08:00
parent fb3437ca01
commit 7830b37a90

View File

@ -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 [];
}
}