🔐 feat: Enhance Bedrock Credential Handling (#4051)

This commit is contained in:
Danny Avila 2024-09-14 12:52:35 -04:00 committed by GitHub
parent f1ae267850
commit ab82966210
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,7 +61,6 @@ const getOptions = async ({ req, endpointOption }) => {
/** @type {import('@librechat/agents').BedrockConverseClientOptions} */
const requestOptions = Object.assign(
{
credentials,
model: endpointOption.model,
region: BEDROCK_AWS_DEFAULT_REGION,
streaming: true,
@ -80,6 +79,10 @@ const getOptions = async ({ req, endpointOption }) => {
endpointOption.model_parameters,
);
if (credentials) {
requestOptions.credentials = credentials;
}
const configOptions = {};
if (PROXY) {
configOptions.httpAgent = new HttpsProxyAgent(PROXY);