harsh-harlequinβ’16mo 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
quickest-silverβ’16mo ago
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
harsh-harlequinOPβ’16mo 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..

ratty-blushβ’16mo ago
That URL is right, I was able to get the 4o function to work. You probably have an error somewhere else.
quickest-silverβ’16mo ago
Try using the Run button at the bottom of the custom function code page, it sometimes shows more info
harsh-harlequinOPβ’16mo 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.
quickest-silverβ’16mo ago
harsh-harlequinOPβ’16mo ago
Thanks! I will check it out. π
quickest-silverβ’16mo ago
Np π
ratty-blushβ’16mo ago
@MikeG Thank You Mike, it works now!
quickest-silverβ’16mo ago
Happy to help π