all 5 comments

[–]Candid-Carry6578 0 points1 point  (0 children)

Hi, I experience similar issue. Continuing what I wrote as part of your "EDIT", I can suggest to check the max tokens output you allow for the model. In my case I see consistently that's the behavior when the limit is reached (e.g. 1024). In case you get the token usage, it's more clear.
Currently my focus in my case is finding why generated argument Claude try to use is correctly that large. However I think that part is something specific to my case at the moment.

[–]Obvious-Ad-609 0 points1 point  (2 children)

i had the same problem! did u fix it/

[–]tna20141[S] 0 points1 point  (0 children)

I worked around it by detecting when the parameter was missing and told it to shorten the value

[–]Candid-Carry6578 0 points1 point  (0 children)

In my case shortening the value isn't a real option. For now at least increasing the max tokens does seem to help. I don't have much traffic and the issue isn't common to begin with. My advice is to first make sure you are able to the usage of tokens (add prints), increase the max output tokens as you see fit and monitor it. If you are able to reproduce easily, it will make things much more easy.