tame-yellowβ’2y ago
404 Error for GPT4-o Function
I have copied function from the link below to try out GPT4-o : https://www.voiceflow.com/function/connect-to-gpt-4o
The only changes I made was renaming last_utterance to lastUtterance.
However it show 404 error at the block, anywhere I miss out?



10 Replies
404 is not found, seems the endpoint its trying to hit does not exist. Open the function and check out the OpenAI documentation to identify which URL you should be hitting, and if its a POST or GET request
tame-yellowOPβ’2y ago
@MikeG this is the only API in the function. Do you mean this is a wrong url which cause the error? I am not sure what is the API I should call to, I am just reusing the function provided by Voiceflow..

helpful-purpleβ’2y ago
That URL is right, I was able to get the 4o function to work. You probably have an error somewhere else.
Try using the Run button at the bottom of the custom function code page, it sometimes shows more info
tame-yellowOPβ’2y ago
It's the same error... I realized is due to the API Key. I thought is free but seems like need to pay in order to use.
tame-yellowOPβ’2y ago
Thanks! I will check it out. π
Np π
helpful-purpleβ’2y ago
@MikeG Thank You Mike, it works now!
Happy to help π