-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Updated the SmartChatModelRequestAdapter to conditionally include t…
…ool_choice in the request body only when tools are present and tool_choice is not 'none'. - Modified the SmartChatModelGeminiRequestAdapter to apply similar logic for tool_config, ensuring it is set only when tools are available. - Adjusted the SmartThread class to remove tool_choice when the last message is a tool, enhancing request clarity. - Improved streaming logic in SmartThread to account for cases where tool_choice is either undefined or explicitly set to 'none'.
- Loading branch information
Brian Joseph Petro
committed
Dec 26, 2024
1 parent
fd7e307
commit dcb7f0f
Showing
3 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters