@philschmid I copied your code and I got the same error. I think the implementation of the Truncation parameter changed in the latest SageMaker version. What’s your SageMaker version?
Here is the error with you code with my endpoint name -
ModelError: An error occurred (ModelError) when calling the InvokeEndpoint operation: Received client error (400) from model with message "{
“code”: 400,
“type”: “InternalServerException”,
“message”: “invalid type: boolean true
, expected struct TruncationParams at line 1 column 34”
}