-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Closed as not planned
Closed as not planned
Copy link
Labels
Description
What happened?
When using Amazon Titan models, it returns a BadRequestError because the stop sequence format validation only happens when litellm.drop_params is set to True, but it should happen regardless of this setting
context: Amazon Titan models have a strict requirement for stop sequences to match the pattern ^(|+|User:)$. The filtering should always happen regardless of the drop_params setting, or requests will fail when using standard stop sequences
Relevant log output
BadRequestError: litellm.BadRequestError: Error code: 400 - {'error': {'message': 'litellm.BadRequestError: BedrockException - {"message":"Malformed input request: string [</function] does not match pattern ^(\\|+|User:)$, please reformat your input and try again."}. Received Model Group=amazon.titan-text-express-v1\nAvailable Model Group Fallbacks=None', 'type': None, 'param': None, 'code': '400'}}Are you a ML Ops Team?
No
What LiteLLM version are you on ?
v1.74.4
Twitter / LinkedIn details
No response