Function calls not working

My function call is not being called properly. When I run the test in setup it shows as an OPTIONS call in my logs, not as a POST call. When I run the assistant and ask it to call the function, there are no logs on the server and the logs show that Vapi is throwing the error: pipeline-error-azure-openai-llm-failed (see ID 566519ab-097c-4eb1-b587-609467a10b9f)

So close to a working product but this error is driving me crazy.

Any ideas?

SOLVED: Remember to add "x-vapi-secret" to the "Access-Control-Allow-Headers" header where handling CORS pre-flight. See the thread below for sample code.
image.png
image.png
Was this page helpful?