Skip to content

refactor: GH-3620 Add BedrockChatOptions to Bedrock #3770

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sunyuhan1998
Copy link
Contributor

@sunyuhan1998 sunyuhan1998 commented Jul 9, 2025

This PR introduces a dedicated BedrockChatOptions class for the Bedrock module, replacing the previously used default ToolCallingChatOptions. This change aims to better accommodate Bedrock's unique features and parameter requirements, thereby enhancing the module's independence and maintainability.

Additionally, this PR also fixes the issues mentioned in issue: #3620 .

This PR includes the following main changes:

  1. Added the BedrockChatOptions class: This class is introduced to centrally manage chat configuration options when interacting with Bedrock models.

  2. Replaced the options implementation in BedrockConverseProxyChatProperties: The previously used configuration class has been replaced with the newly introduced BedrockChatOptions to ensure consistency and maintainability of the configuration.

  3. Updated the configuration usage in related model classes: All references to ToolCallingChatOptions have been replaced with BedrockChatOptions to better align with the specific configuration requirements of Bedrock.

  4. Added targeted unit tests: Unit tests have been added for BedrockChatOptions and its related logic to ensure functional correctness and future maintainability.

Fixes: #3620

@sunyuhan1998
Copy link
Contributor Author

Hi @ilayaperumalg , can you help review this? Thank you!

@ilayaperumalg
Copy link
Member

@sunyuhan1998 thank you for the PR! We'll get to it soon.

@sunyuhan1998
Copy link
Contributor Author

Hi @ilayaperumalg , thank you for helping with the review. May I ask if there are any areas in the current PR that still need adjustment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

spring ai bedrock converse properties auto completion doesn't auto complete
2 participants