mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
🔐 feat: Enhance Bedrock Credential Handling (#4051)
This commit is contained in:
parent
f1ae267850
commit
ab82966210
1 changed files with 4 additions and 1 deletions
|
|
@ -61,7 +61,6 @@ const getOptions = async ({ req, endpointOption }) => {
|
||||||
/** @type {import('@librechat/agents').BedrockConverseClientOptions} */
|
/** @type {import('@librechat/agents').BedrockConverseClientOptions} */
|
||||||
const requestOptions = Object.assign(
|
const requestOptions = Object.assign(
|
||||||
{
|
{
|
||||||
credentials,
|
|
||||||
model: endpointOption.model,
|
model: endpointOption.model,
|
||||||
region: BEDROCK_AWS_DEFAULT_REGION,
|
region: BEDROCK_AWS_DEFAULT_REGION,
|
||||||
streaming: true,
|
streaming: true,
|
||||||
|
|
@ -80,6 +79,10 @@ const getOptions = async ({ req, endpointOption }) => {
|
||||||
endpointOption.model_parameters,
|
endpointOption.model_parameters,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (credentials) {
|
||||||
|
requestOptions.credentials = credentials;
|
||||||
|
}
|
||||||
|
|
||||||
const configOptions = {};
|
const configOptions = {};
|
||||||
if (PROXY) {
|
if (PROXY) {
|
||||||
configOptions.httpAgent = new HttpsProxyAgent(PROXY);
|
configOptions.httpAgent = new HttpsProxyAgent(PROXY);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue