Open swombat opened 4 months ago
To be clear this would also happen with other weird mistakes like passing system: nil
in the params
, which is an easy mistake to make and not a bug in the anthropic gem like the preprocess_stream
issue above (which is now fixed in the latest code in my fork).
As I tested the new streaming functionality, I found that when the parameters are not quite right it semi-silently fails:
I wonder if these kinds of errors (invalid requests in particular) should actually result in an
Anthropic::Error
being raised.I can add this code if you think it makes sense.