Welcome to Portkey Forum

Updated 9 months ago

Unexpected Behaviour When Consuming Claude-2.1 Without Required Parameters

I made a API call to claude-2.1 through portkey. It is clear that I missed the adding a required parameters to consume claude-2.1, which is max_tokens. However, I was expecting the error to be shown the terminal. But rather I see the error in the console. Is this an expected behaviour?
Attachment
image.png
V
v
S
4 comments
It is possible that Anthropic doesn't throw an HTTP error but a custom error for this, which is why it shows up here
What do you mean by terminal here? This error should come up in response for sure. Not sure what the context is here. Can you show some example or screenshot about where is this not showing up?
I discovered the error did not show up in the terminal because fallbacks were enabled for this request.
  • Since the request is made, it shows up in the Logs
  • Since the request fails, the alternative successful request is made.
The behaviour looks reasonable that way, so we can consider this query resolved πŸ‘
Add a reply
Sign up and join the conversation on Discord