feat: filter out empty API keys and improve tool call handling#53
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
f8fc7ee to
b4ca635
Compare
b4ca635 to
5c3464c
Compare

Add support for tool call results in Anthropic and Bedrock providers
This PR enhances the handling of tool call results in the Anthropic and Bedrock providers, enabling proper communication with AI models when tools are used. Key changes include:
ToolCallResultIDin message processing for Anthropic and Bedrock providersToolCallIDtoToolCallResultIDin the Message schema for consistencygetRoleFromMessageto extract and validate message rolesSelectKeyFromProviderForModelThese changes ensure that tool call results are properly formatted according to each provider's API requirements, improving the reliability of tool-based interactions across different AI models.