I have spent all day trying all manner of combinations of settings using tools and api calls, content types, returning simple JSON objects, single-and multiple-line strings, serialized JSON objects, results array, varying output content-types (json or plain text), etc and It seems that no matter what I try, VAPI is taking the result property in this response from the Call log Messages when my API is getting called and is returning a stringified JSON object, regardless of whether my API was returning JSON or a plaintext string. I even tried sending as text/html and bytes as application/octet-stream but got the exact same results.
It appears that this stringification is happening upstream from what my API is returning, and I have found no way to stop VAPI from doing this.
https://cdn.discordapp.com/attachments/1211484481848873020/1386486315247468564/image.png?ex=6859e181&is=68589001&hm=6ac242778896c9eeaa0a7fd67e6d8f4dc0f32098c71bef2f9a315b292c368a66&
https://cdn.discordapp.com/attachments/1211484481848873020/1386486315486412940/image.png?ex=6859e181&is=68589001&hm=1bb319164a5425e5c4c2dfb839357bc6bc6bb0a8d95f05a183afda2578692431&
https://cdn.discordapp.com/attachments/1211484481848873020/1386486315687612496/image.png?ex=6859e181&is=68589001&hm=ba444c932e88bf1f716f48bd3b2e62b1b97fed0dcc75d1e086c096a62aa92b92&
https://cdn.discordapp.com/attachments/1211484481848873020/1386486315918295181/image.png?ex=6859e181&is=68589001&hm=69c24f098c40e217c3d92149dd4d88bf81f81c6158a75b390b52f6e68913e138&