Coverage for src\clauth\models.py: 0%
9 statements
« prev ^ index » next coverage.py v7.10.6, created at 2025-09-18 10:09 -0400
« prev ^ index » next coverage.py v7.10.6, created at 2025-09-18 10:09 -0400
1from clauth import aws_utils as aws
2def model_picker(profile:str, region:str, provider:str='anthropic'):
3 model_ids, model_arns = aws.list_bedrock_profiles(profile=profile,region=region)
4 mapping ={}
5 for model_id ,model_arn in zip(model_ids,model_arns):
6 if provider not in model_id:
7 continue
8 mapping[model_id] = model_arn
10 valid_model_ids = mapping.keys()