Skip to content

chore: add anthropic_beta param#1060

Merged
VisargD merged 1 commit into
Portkey-AI:mainfrom
b4s36t4:chore/bedrock-anthropic-beta-param
Apr 24, 2025
Merged

chore: add anthropic_beta param#1060
VisargD merged 1 commit into
Portkey-AI:mainfrom
b4s36t4:chore/bedrock-anthropic-beta-param

Conversation

@b4s36t4
Copy link
Copy Markdown
Contributor

@b4s36t4 b4s36t4 commented Apr 24, 2025

Code Quality type: new feature

Author Description

Description

🔄 What Changed

Added support for the anthropic_beta parameter in the Bedrock Converse Anthropic Chat Complete configuration. This parameter allows passing Anthropic beta features to the API.

🔍 Impact of the Change

Enables users to access experimental features in Anthropic models through the Bedrock integration by passing the anthropic_beta parameter.

📁 Total Files Changed

1 file modified: src/providers/bedrock/chatComplete.ts (+3 lines)

🧪 Test Added

N/A - No tests have been added for this change.

🔒 Security Vulnerabilities

N/A - This change doesn't introduce any security vulnerabilities.

Motivation

To support the anthropic_beta parameter which is needed for accessing experimental features in Anthropic's models through Amazon Bedrock.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)

How Has This Been Tested?

  • Unit Tests
  • Integration Tests
  • Manual Testing

Screenshots (if applicable)

N/A

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Related Issues

N/A

Quality Recommendations

  1. Add unit tests to verify the new parameter is correctly passed to the Anthropic API when used

  2. Consider adding a comment explaining what the anthropic_beta parameter is used for and its expected values

  3. Update documentation to reflect the new parameter availability

@VisargD VisargD merged commit 40c4eef into Portkey-AI:main Apr 24, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants