fix(ai): honor scoped AWS profile in Bedrock endpoint resolution
This commit is contained in:
@@ -127,7 +127,7 @@ export const stream: StreamFunction<"bedrock-converse-stream", BedrockOptions> =
|
|||||||
profile: options.profile || getProviderEnvValue("AWS_PROFILE", options.env),
|
profile: options.profile || getProviderEnvValue("AWS_PROFILE", options.env),
|
||||||
};
|
};
|
||||||
const configuredRegion = getConfiguredBedrockRegion(options);
|
const configuredRegion = getConfiguredBedrockRegion(options);
|
||||||
const hasAmbientConfiguredProfile = Boolean(getProviderEnvValue("AWS_PROFILE"));
|
const hasAmbientConfiguredProfile = Boolean(getProviderEnvValue("AWS_PROFILE", options.env));
|
||||||
const endpointRegion = getStandardBedrockEndpointRegion(model.baseUrl);
|
const endpointRegion = getStandardBedrockEndpointRegion(model.baseUrl);
|
||||||
const useExplicitEndpoint = shouldUseExplicitBedrockEndpoint(
|
const useExplicitEndpoint = shouldUseExplicitBedrockEndpoint(
|
||||||
model.baseUrl,
|
model.baseUrl,
|
||||||
|
|||||||
Reference in New Issue
Block a user