Functions
FUNC list_mantle_models
region: AWS region name (e.g."us-east-1"), orNoneto use the default region.
- List of model objects returned by the Bedrock Mantle models API.
FUNC stringify_mantle_model_ids
region: AWS region name, orNoneto use the default region.
- Newline-separated string of model IDs prefixed with
" * ".
FUNC create_bedrock_mantle_backend
model_id: The model to use, either as a[ModelIdentifier](model_ids#class-modelidentifier)(which must have abedrock_name) or a raw Bedrock model ID string.region: AWS region name, orNoneto use the default region ("us-east-1").
- An
OpenAIBackendconfigured to call the specified model via AWS Bedrock Mantle.
Exception: Ifmodel_idis a[ModelIdentifier](model_ids#class-modelidentifier)with nobedrock_nameset.AssertionError: If theAWS_BEARER_TOKEN_BEDROCKenvironment variable is not set.Exception: If the specified model is not available in the target region.