def _create_bedrock_anthropic_model(model_name: str):
    """Helper function to create an AWS Bedrock Anthropic model with specified model name."""
    aws_access_key_id = Configuration.get("AWS_ACCESS_KEY_ID")
    aws_secret_access_key = Configuration.get("AWS_SECRET_ACCESS_KEY")
    aws_region = Configuration.get("AWS_REGION")

    if not aws_access_key_id or not aws_secret_access_key or not aws_region:
        return None, {"status_code": 401, "detail": "No AWS credentials provided. Please set AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_REGION in your configuration."}
    
    bedrock_client = AsyncAnthropicBedrock(
        aws_access_key=aws_access_key_id,
        aws_secret_key=aws_secret_access_key,
        aws_region=aws_region
    )

    return AnthropicModel(model_name, provider=AnthropicProvider(anthropic_client=bedrock_client)), None
Helper function to create an AWS Bedrock Anthropic model with specified model name.
src/upsonic/server/level_utilized/utility.py