mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
🪨 fix: add AWS STS session token support to Bedrock client (#4655)
This commit is contained in:
parent
766643ea1c
commit
c27b26cc31
1 changed files with 2 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ const getOptions = async ({ req, endpointOption }) => {
|
|||
const {
|
||||
BEDROCK_AWS_SECRET_ACCESS_KEY,
|
||||
BEDROCK_AWS_ACCESS_KEY_ID,
|
||||
BEDROCK_AWS_SESSION_TOKEN,
|
||||
BEDROCK_REVERSE_PROXY,
|
||||
BEDROCK_AWS_DEFAULT_REGION,
|
||||
PROXY,
|
||||
|
|
@ -24,6 +25,7 @@ const getOptions = async ({ req, endpointOption }) => {
|
|||
: {
|
||||
accessKeyId: BEDROCK_AWS_ACCESS_KEY_ID,
|
||||
secretAccessKey: BEDROCK_AWS_SECRET_ACCESS_KEY,
|
||||
...(BEDROCK_AWS_SESSION_TOKEN && { sessionToken: BEDROCK_AWS_SESSION_TOKEN }),
|
||||
};
|
||||
|
||||
if (!credentials) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue