Skip to content
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

[openai] Bad Request Error, Error code: 404 - {'error': {'message': 'The model o1-2024-12-17 does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}} #13036

Open
5 tasks done
MitraSafarinejad opened this issue Jan 25, 2025 · 2 comments
Labels
🐞 bug Something isn't working

Comments

@MitraSafarinejad
Copy link

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.14.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I encounter the following error when using certain OpenAI models:

[openai] Bad Request Error, Error code: 404 - {'error': {'message': 'The model o1does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}

This happens specifically with these models:
o1 mini-2024-09-12
o1
o1-2024-12-17

However, the following models work fine:
o1 mini (previous version)
o1 preview
I am currently on Tier 5 of OpenAI.

✔️ Expected Behavior

I expect all the listed models under my Tier 5 OpenAI subscription to be accessible and function correctly. Specifically:

new Models like o1 mini-2024-09-12, o1, and o1-2024-12-17 should return valid responses and not trigger a 404 - model_not_found error.

❌ Actual Behavior

Models o1 mini-2024-09-12, o1, and o1-2024-12-17 are inaccessible, returning a 404 - model_not_found error.
Meanwhile, o1 mini (previous version) and o1 preview are functioning without any issues.

@dosubot dosubot bot added the 🐞 bug Something isn't working label Jan 25, 2025
@MitraSafarinejad
Copy link
Author

Thank you for your response!

To clarify, I did mean the following models:

o1-2024-12-17
o1 mini-2024-09-12
o1
These are the exact model names I attempted to use, and they are not typos or inconsistencies. I have attached an image for your reference, which shows the model names and confirms their existence in the context of my usage.

Additionally:

My API key is active and associated with a Tier 5 subscription.
The other models (o1 mini and o1 preview) are working fine using the same API key, so this doesn't appear to be a permissions or regional access issue.
I double-checked the models I am attempting to use, and they are listed in the environment I am working with.
Let me know if there’s anything else you need to investigate further.

Image

@langgenius langgenius deleted a comment from jmanhype Jan 25, 2025
@langgenius langgenius deleted a comment from jmanhype Jan 25, 2025
@MitraSafarinejad
Copy link
Author

I tested the model o1-2024-12-17 directly using a request to the OpenAI API, and the request was successful (returned a 200 status code with no issues). This confirms that the model is available and accessible via the OpenAI API when bypassing Dify.

@crazywoola Could you or someone from the team help investigate why this issue is occurring? Let me know if any additional information is needed to assist in debugging.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant