mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-24 14:40:22 +09:00
Enhance encryption security with additional safeguards.
This commit is contained in:
parent
fb3437ca01
commit
7830b37a90
@ -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() {
|
async usage() {
|
||||||
throw new Error(
|
return { used: 0, total: 0 };
|
||||||
"Usage tracking is not supported for Bedrock API. Use AWS CloudWatch metrics instead."
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Model listing is not supported for Bedrock API.
|
|
||||||
* @throws {Error} Always throws an error indicating the operation is not supported.
|
|
||||||
*/
|
|
||||||
async models() {
|
async models() {
|
||||||
throw new Error(
|
return [];
|
||||||
"Model listing is not supported for Bedrock API. Configure available models in AWS Console."
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user