Skip to content

Bedrock LM produces extraneous key error in unclear circumstances #365

@JamesScharf

Description

@JamesScharf

AWS's Bedrock runtime does not accept the following parameters, however they are still being passed to the LM at some point:
n and max_tokens

At what point is this being done? I haven't specified either value in my code which uses DSPy.

Here's the full error from boto3:

ValidationException: An error occurred (ValidationException) when calling the InvokeModel operation: Malformed input request: #: extraneous key [max_tokens] is not permitted#: extraneous key [n] is not permitted, please reformat your input and try again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions