Problem
The get_model_arn() function in claudeb.sh lacks validation for unknown model names, which can lead to:
- Inconsistent return formats
- Silent failures when encountering unknown models
- Potential AWS Bedrock API failures
- Poor user experience with unclear error messages
Current Behavior
- Function accepts any model name without validation
- Unknown models may cause runtime errors in AWS Bedrock calls
- No guidance provided for supported model aliases
Proposed Solution
Add model validation logic with two approaches:
Option 1: Strict Validation
- Add case statement to check against known model aliases
- Exit with error for unknown models
- Display list of supported models
Option 2: Flexible Validation
- Allow custom ARNs to pass through unchanged
- Warn users about unknown model aliases
- Provide helpful error messages with suggestions
Implementation
Priority
Medium - improves user experience and prevents runtime errors
Labels
- enhancement
- bug
- good first issue
Referenced from: #12 (comment)
Problem
The
get_model_arn()function inclaudeb.shlacks validation for unknown model names, which can lead to:Current Behavior
Proposed Solution
Add model validation logic with two approaches:
Option 1: Strict Validation
Option 2: Flexible Validation
Implementation
get_model_arn()with validation logicPriority
Medium - improves user experience and prevents runtime errors
Labels
Referenced from: #12 (comment)