__init__.py 626 B

123456789101112131415161718
  1. """AWS Bedrock provider profile."""
  2. from providers import register_provider
  3. from providers.base import ProviderProfile
  4. class BedrockProfile(ProviderProfile):
  5. """AWS Bedrock — no REST /v1/models endpoint; uses AWS SDK."""
  6. bedrock = BedrockProfile(
  7. name="bedrock", aliases=("aws", "aws-bedrock", "amazon-bedrock", "amazon"), api_mode="bedrock_converse",
  8. env_vars=(), # AWS SDK credentials — not env vars
  9. base_url="https://bedrock-runtime.us-east-1.amazonaws.com", auth_type="aws_sdk",
  10. supports_model_listing=False, # listing goes through the AWS SDK, not a REST call
  11. )
  12. register_provider(bedrock)