Cannot use Anthropic Sonnet 3.5
# support
c
Hi. I keep getting this error message when trying to use Sonnet 3.5. You guys have to really step it up because the amount of bugs is unbelievable. Here is the next error message: An error occurred in this call: pipeline-error-anthropic-llm-failed. https://cdn.discordapp.com/attachments/1261837264737271890/1261837265177546802/IMG_1614.jpg?ex=66946907&is=66931787&hm=b420bace1a69a04c649a56091f4d5e7c7ac136fd73a4c4d72e9668f4459c5d5e&
Btw I checked and I have enough credits on my Anthropic account.
s
call id please @Cyrus
m
Hey, I have the same issue while wanted to use anthropic models when performing a tool call. When I check my call logs:
Copy code
Model request failed (#1, reason: (messages.6.content.0.tool_result.content: Found an object, but `tool_result` content must either be a string or a list of content blocks.))
Here is a callId:
69800630-41a7-48a0-a27f-5890ba64780e
Same call works fine with openAI GPT-4o
s
The expected result format is string, so please return the result which is object stringified. JSON.stringify(result) 🙂
m
I am also experiencing a really unreliable pipeline with the Sonnet 3.5 model.
c
Call ID is: f08c9ebe-e6ad-4951-bb78-de027b53e1fa
m
@Shubham Bajaj ok, I'll change. Is it specific to Anthropic? As explained same call works fine with openAI. And in vapi doc it describes it can be an object: > It could be a string, a number, an object, an array, or any other data structure that is relevant to the tool’s purpose. I'll stringify it as a workaround, but I think it would be better if Vapi managed it on it side to address model specificities https://cdn.discordapp.com/attachments/1261837264737271890/1263046780539506768/Screenshot_from_2024-07-17_10-14-23.png?ex=6698cf7a&is=66977dfa&hm=c38f303806ffd069008d02d30afa9a9a80caeb6ef71ec0e202f08a4c6f99f378&
s
It's for every model not specific to Anthropic
noted, and raised.
6 Views