You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an error when using AWS Bedrock with Spring AI. The following exception is thrown by the BedrockRuntime service:
Observed Issue:
Error Occured at launch time software.amazon.awssdk.services.bedrockruntime.model.ValidationException: Malformed input request: #: required key [prompt] not found#: required key [max_tokens_to_sample] not found#: extraneous key [texts] is not permitted#: extraneous key [truncate] is not permitted#: extraneous key [input_type] is not permitted, please reformat your input and try again. (Service: BedrockRuntime, Status Code: 400, Request ID: XXXXX)
Expected Behavior
The request should be correctly formatted to be accepted by AWS Bedrock.
Input
Spring AI version: last bom version
AWS Bedrock model used: anthropic.claude-3-haiku-20240307-v1:0
I encountered an error when using AWS Bedrock with Spring AI. The following exception is thrown by the BedrockRuntime service:
Observed Issue:
Error Occured at launch time
software.amazon.awssdk.services.bedrockruntime.model.ValidationException: Malformed input request: #: required key [prompt] not found#: required key [max_tokens_to_sample] not found#: extraneous key [texts] is not permitted#: extraneous key [truncate] is not permitted#: extraneous key [input_type] is not permitted, please reformat your input and try again. (Service: BedrockRuntime, Status Code: 400, Request ID: XXXXX)
Expected Behavior
The request should be correctly formatted to be accepted by AWS Bedrock.
Input
Properties
Dependencies
The text was updated successfully, but these errors were encountered: