-
Notifications
You must be signed in to change notification settings - Fork 185
fixes bedrock tests #1098
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixes bedrock tests #1098
Conversation
|
Caution Review failedThe pull request is closed. 📝 WalkthroughSummary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings. WalkthroughThis pull request introduces a conditional fallback mechanism for non-required model operations in the request handler and extends the test infrastructure to support extra parameters for batch and file operations. It includes a nil-pointer safety fix for Bedrock key configuration, renames a public function to unexported scope, and updates test configurations with environment-driven parameters. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (7)
Comment |
🧪 Test Suite AvailableThis PR can be tested by a repository admin. |
6e76f03 to
258f572
Compare

Improve key selection for non-model-required operations
This PR enhances Bifrost's key selection logic to handle file operations and batch list operations more gracefully. When a model is not required for a request, the system now falls back to using the first available key for the provider instead of returning an error.
Changes
requestWorkerinbifrost.goto check if a model is required before returning an error during key selectionBatchExtraParamsandFileExtraParamsto test configuration to support provider-specific parametersIsModelRequiredfunction private (renamed toisModelRequired) as it's only used internallyFileListmethodType of change
Affected areas
How to test
Breaking changes
Security considerations
The PR handles AWS credentials and S3 bucket information more robustly, ensuring proper configuration for Bedrock batch operations.