Ethan Tan
06/17/2024, 2:00 PMVapi
06/17/2024, 2:02 PMVapi
06/17/2024, 2:02 PMtoolIds
or tools
parameters to reference the tool within your assistant's code.
3. Make sure that the secret (if you've set one) is being sent correctly as a header called x-vapi-secret
in the requests to your server. This is crucial for your server to authenticate requests from VAPI.
If you've checked all of the above and the issue persists, it could be helpful to look at the network requests being made to see if the tool's server URL is being called at all. If you're not seeing the expected requests, there might be a configuration issue on the VAPI side.
If you need further assistance, please provide more details about how you're attempting to call the tool, and I'll do my best to help you resolve the issue. If the problem is beyond the scope of what we can resolve here, you may need to reach out to VAPI support for more in-depth troubleshooting.Vapi
06/17/2024, 2:02 PMSahil
06/17/2024, 2:14 PMSahil
06/17/2024, 2:14 PMEthan Tan
06/18/2024, 10:39 AMSahil
06/18/2024, 6:53 PMEthan Tan
06/19/2024, 10:08 AMEthan Tan
06/19/2024, 10:09 AMSahil
06/19/2024, 10:20 AMSahil
06/19/2024, 10:21 AMEthan Tan
06/19/2024, 12:16 PMEthan Tan
06/19/2024, 12:16 PMSahil
06/19/2024, 12:54 PMEthan Tan
06/19/2024, 2:28 PM{
"id": "chatcmpl-abc123",
"object": "chat.completion",
"created": 1699896916,
"model": "gpt-3.5-turbo-0125",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": null,
"tool_calls": [
{
"id": "call_abc123",
"type": "function",
"function": {
"name": "get_current_weather",
"arguments": "{\n\"location\": \"Boston, MA\"\n}"
}
}
]
},
"logprobs": null,
"finish_reason": "tool_calls"
}
],
"usage": {
"prompt_tokens": 82,
"completion_tokens": 17,
"total_tokens": 99
}
}
What should be sent to Vapi to trigger the request-start message?
thank youSahil
06/19/2024, 6:18 PMEthan Tan
06/19/2024, 7:57 PMSahil
06/19/2024, 9:43 PMEthan Tan
06/19/2024, 10:22 PMSahil
06/19/2024, 10:33 PMEthan Tan
06/20/2024, 9:31 AMthanks do i understand this correctly please:
1 . call Vapi with assistant config including tool config (as in your screenshot)
2. Vapi calls Customllm endpoint with model params + tool config
3. Customllm endpoint calls Openai with tool config + chat message
4. Customllm receives tool call + parameter from Openai
5. Customllm endpoint sends tool call + parameter to Vapi
6. Vapi speaks 'request-start' message
7. Customllm endpoint calls Tool endpoint and retrieves result
8. Customllm endpoint sends tools result to Openai
9. Customllm endpoint receives chat response from Openai
10. Customllm endpoint streams chat response to Vapi
11. Vapi speaks response
Sahil
06/20/2024, 10:27 AMEthan Tan
06/20/2024, 1:30 PM