Skip to content

extraneous key [stop_sequences] is not permitted

0

ValueError: Error raised by bedrock service: An error occurred (ValidationException) when calling the InvokeModel operation: Malformed input request: #: extraneous key [stop_sequences] is not permitted, please reformat your input and try again.

asked a year ago918 views
1 Answer
1

Hi There

Which LLM are you using? Not all LLM's accept the stop_sequences parameter. Each Model has its own set of parameters, see https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html for all model parameters. stop_sequences I believe is limited to Anthropic Claude models.

AWS
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.