BedrockMantleOptions
Namespace: Vercel.AI.AmazonBedrock
public sealed class BedrockMantleOptionsSettings for the OpenAI-compatible Bedrock Mantle endpoint.
Inheritance: object
Properties
Section titled “Properties”AccessKeyId
Section titled “AccessKeyId”public string? AccessKeyId { get; set; }Access key. Falls back to AWS_ACCESS_KEY_ID.
Value: string
ApiKey
Section titled “ApiKey”public string? ApiKey { get; set; }Bearer token. When set, SigV4 is not used. Falls back to AWS_BEARER_TOKEN_BEDROCK.
Value: string
BaseUrl
Section titled “BaseUrl”public string? BaseUrl { get; set; }Origin including the version path. When empty, the regional Mantle host is used.
Value: string
CredentialProvider
Section titled “CredentialProvider”public Func<CancellationToken, Task<AmazonBedrockCredentials>>? CredentialProvider { get; set; }Supplies SigV4 credentials for each request. When set, its keys are used instead of AccessKeyId, SecretAccessKey, and SessionToken. The region always comes from Region.
Value: Func<CancellationToken, Task<AmazonBedrockCredentials>>
Headers
Section titled “Headers”public Dictionary<string, string> Headers { get; }Extra headers sent on every call. The SDK user-agent suffix is appended.
Value: Dictionary<string, string>
HeadersProvider
Section titled “HeadersProvider”public Func<CancellationToken, Task<IReadOnlyDictionary<string, string?>>>? HeadersProvider { get; set; }Resolves extra headers on every call, after Headers. Its values win. A null value drops the header.
Value: Func<CancellationToken, Task<IReadOnlyDictionary<string, string>>>
Region
Section titled “Region”public string Region { get; set; }AWS region. Falls back to AWS_REGION, then us-east-1.
Value: string
SecretAccessKey
Section titled “SecretAccessKey”public string? SecretAccessKey { get; set; }Secret key. Falls back to AWS_SECRET_ACCESS_KEY.
Value: string
SessionToken
Section titled “SessionToken”public string? SessionToken { get; set; }Session token. Falls back to AWS_SESSION_TOKEN.
Value: string
UtcNow
Section titled “UtcNow”public Func<DateTimeOffset>? UtcNow { get; set; }Clock used for signing.
Value: Func<DateTimeOffset>
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product