Steps to reproduce: 1. Gather a big enough context, which is more than Claude can handle. 2. Make an API call for text completion. 3. The client will fail after processing this request. An empty chat will be created. Possible ways to fix: 1. Analyze the size of the request being sent. 2. Show the appropriate error so that it is clear, why the request crashes.
Steps to reproduce:
Possible ways to fix: