At the very first step in the prompt caching tutorial, I get the following error while following the tutorial steps:
anthropic.BadRequestError: Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'prompt is too long: 206657 tokens > 199999 maximum'}}
I am following the code exactly up to the step where the non-cached request is supposed to be sent.
At the very first step in the prompt caching tutorial, I get the following error while following the tutorial steps:
anthropic.BadRequestError: Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'prompt is too long: 206657 tokens > 199999 maximum'}}
I am following the code exactly up to the step where the non-cached request is supposed to be sent.