Squad call transfer fails with Openrouter Gemini
# support
e
I'm testing with a squad with 2 assistants using: Provider: Openrouter Model: google/gemini-pro-1.5 When it comes to the call transfer, it throws: An error occurred in this call: pipeline-error-openrouter-llm-failed Could you please assist? Call ID: e35f6261-12eb-4e7f-a839-d6413754bce8 Thank you!
v
@Ethan Tan I'm here to help! It seems like there was an issue with the call transfer due to a pipeline error with the Openrouter provider. This error indicates that there was a failure in the language model layer. To resolve this, you may need to check the configuration of your call transfer setup and ensure that the Openrouter provider and the google/gemini-pro-1.5 model are correctly integrated. If you've already checked the configurations and the issue persists, it might be necessary to reach out to the Openrouter support team for further assistance. They might need the Call ID you provided to investigate the issue in more detail. If there's anything else I can assist you with, please let me know!
You can continue this conversation by mentioning me in the message.
Hello any help with this please?
@Shubham Bajaj
s
@Ethan Tan checking on this.
@Ethan Tan can you please share the code snippet/github your using to create custom llm, to verify the reason bhehind "Couldn't Complete Completion Request." error message.
e
Hey @Shubham Bajaj I didn’t use a custom LLM it was open router
s
Here's the error log and it's visible tool call result is not retuning result in expected frormat, The expected format is ToolCallResult format. Check from here https://api.vapi.ai/api-json#
Copy code
json
Couldn't Complete Completion Request. Error: {
  "message": "toolType not set",
  "stack": "Error: toolType not set\n    at currentFunctionCallGet (/app/dist/apps/phoneCallWorker/main.js:16891:23)\n    at /app/dist/apps/phoneCallWorker/main.js:16923:40\n    at Generator.next (<anonymous>)\n    at fulfilled (/app/node_modules/tslib/tslib.js:166:62)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
e
Thanks @Shubham Bajaj - I did not set any tools, only the assistants and assistantDirections. It worked with OpenAI but not openrouter
s
@Ethan Tan then please typeout tool id.
e
Hey @Shubham Bajaj could you clarify what you mean by that please - which tool is this? I have not defined any tool in my API call
s
What didn't worked here?
Ignore typo.
e
@Shubham Bajaj I created a squad with 2 members (transient assistants), via the API, and using Openrouter (google/gemini-pro-1.5) When the transfer happens from assistant A to assistant B, the call throws an error: pipeline-error-openrouter-llm-failed
@Shubham Bajaj given the Tool error message you shared, is it to do with how you handle the call transfers in Vapi, i.e. you use a Tool, but perhaps the tool format has not been correctly set up for openrouter?
s
To confirm I require recent call id with timestamp.
e
Call ID: e35f6261-12eb-4e7f-a839-d6413754bce8 Timestamp: 01:59
s
@Ethan Tan it's an bug will raise a ticket.
e
Ok great, thank you. Any idea on timeline for a fix pls?
s
will let you know.
e
@Shubham Bajaj ok thanks
@Shubham Bajaj thanks - are we supposed to be able to view that? I dont have access
s
no
e
ok thanks
@Shubham Bajaj is there a way to be notified when this is fixed, please?
s
I will let you know.
e
Ok thank you
@Shubham Bajaj any update on this, thanks
s
yes it's in pipeline soon will be fixed with others.
e
@Shubham Bajaj how is it looking now? thank you
s
it's fiixed now please check.
e
@Shubham Bajaj thank you. I’m away at the moment but will let you know when I test it
@Shubham Bajaj I just tested this. Call ID: faa25338-cf06-477b-aaa3-7fd3e057311a It still failed on the transfer: An error occurred in this call: pipeline-error-openrouter-llm-failed And this was the message spoken aloud when initiating the transfer:
Copy code
{
  "role": "bot",
  "time": 1723114116263,
  "source": "",
  "endTime": 1723114132583,
  "message": "That's wonderful. And it sounds like you have a beautiful vision for what you want. Now that we've clarified that, I'm ready to pass you on to the next stage of your journey. **Tool code. Print, default. Transfer call, destination equal sign, Squattest.**",
  "secondsFromStart": 155.46
}
s
can you please create a new discord ticket.
and tag me there.
e
thanks, done
3 Views