-
-
Notifications
You must be signed in to change notification settings - Fork 716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] - OpenAI API calls returning 404 in logs #4209
Comments
If you're using Open AI you shouldn't be setting the base URL: https://docs.mealie.io/documentation/getting-started/installation/open-ai/ Additionally, if you're on the free tier, you're going to get a 404 error since you don't have access to all models, including the default one |
Heya, thanks for your response. Confirming I'm not setting the baseurl and I'm not on the free tier of OpenAI. I think OpenAI changed the URL of the "completions" API. My guess is that the python lib you're using to hit the completions API is using and old URL "/chat/completions". I think the new URL is "/v1/completions". I tried curling both with my API key and only the new url works. It also seems that "gtp-4o" isn't supported by the /v1/completions api. However, "gpt-3.5-turbo-instruct" is. |
I just checked on my instance with all default settings and it works as expected. Are you sure you cleared the base URL? Are you sure your instance can reach OpenAI? Also make sure you're on the latest nightly, which has the latest OpenAI Python client |
Confirming that I'm seeing this in latest (1.12.0) and some other issue (I think my API-key is not submitted?) in the nightly release. I'm available for debugging if desired! |
Please share your docker compose and the logs with the failed request |
Hope this helps! docker-compose.yml
log
|
Looks like you're on the free tier. The free tier won't work with Mealie. See the configuration docs: https://docs.mealie.io/documentation/getting-started/installation/open-ai/ |
Looks like my initial payment didn't go through or something. Repeated it and it now works. Thanks a lot! |
First Check
What is the issue you are experiencing?
In setting up the OpenAI integration I see 404s in the logs.
I can only set base url. Looking in OpenAI docs it looks like the completion URL is https://api.openai.com/v1/completions which is different than the url above.
https://platform.openai.com/docs/api-reference/completions/create?lang=curl
Steps to Reproduce
Please provide relevant logs
INFO 2024-09-14T14:26:18 - HTTP Request: POST https://api.openai.com/chat/completions "HTTP/1.1 404 Not Found"
Mealie Version
Nightly
Build
d8dbcac1964c9e485be066c6ab49feda14e31220
Deployment
Docker (Linux)
Additional Deployment Details
No response
The text was updated successfully, but these errors were encountered: