Unnecessary Limitation on Stop Sequences in /converse API of Botocore #3354
Labels
bug
This issue is a confirmed bug.
p2
This is a standard priority issue
response-requested
Waiting on additional info and feedback.
Describe the bug
I have encountered an issue with the
/converse
API in the Botocore API specification, specifically regarding the limitation on stop sequences. According to the [API spec](botocore/botocore/data/bedrock-runtime/2023-09-30/service-2.json
Line 1891 in dd0e94f
InferenceConfigurationStopSequencesList
only supports stop sequences with up to 4 words. This limitation does not exist in the regular Anthropic API, which allows for more flexibility.Regression Issue
Expected Behavior
The /converse API should allow stop sequences with more than 4 words, similar to the regular Anthropic API, to provide more flexibility and avoid unnecessary constraints.
Current Behavior
The API currently restricts stop sequences to a maximum of 4 words, which is not aligned with the capabilities of the regular Anthropic API.
Reproduction Steps
Example code:
Possible Solution
Consider removing the 4-word restriction on stop sequences in the /converse API to align with the regular Anthropic API's capabilities.
Additional Information/Context
This limitation seems unnecessary and adds constraints that are not present in the regular Anthropic API. It would be beneficial to remove this restriction to enhance the API's usability and flexibility.
SDK version used
1.36.6
Environment details (OS name and version, etc.)
macOS 15.1.1 (24B91)
The text was updated successfully, but these errors were encountered: