langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
50.82k stars 7.31k forks source link

‌‌‌‌‌OpenRouter, o1-mini and o1-preview error #10279

Open KienVu2368 opened 1 day ago

KienVu2368 commented 1 day ago

Self Checks

Dify version

0.10.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Add openrouter API image

  2. Choose o1-mini on agent chat

  3. Chat image

Errors only happen with o1-mini and o1-preview

✔️ Expected Behavior

‌‌‌‌No error, Agent can run normally

❌ Actual Behavior

[openrouter] Error: 'choices'

dosubot[bot] commented 1 day ago

Hey there, @KienVu2368! I'm here to help you with any bugs, questions, or contributions you may have regarding Dify. I'll do my best to assist you while we wait for a human maintainer to jump in. Let's tackle this together!

I couldn't find specific information about the 'choices' error in the Dify codebase when using the o1-mini and o1-preview models. However, there are some related discussions and issues that might be helpful:

  1. A similar issue was discussed regarding a 404 error when using the o1-preview model in a self-hosted Docker setup. The solution involved ensuring that the Ollama service is accessible from the Docker container by using host.docker.internal instead of localhost in the service URL [1].

  2. There is also a related unsolved discussion about a connection error with status code 503, which might provide some insights into network-related issues [2].

For the 'choices' error, it might be beneficial to check the network configurations and ensure that all services are correctly exposed and accessible within your Docker setup. Additionally, reviewing the logs for any specific error messages related to the 'choices' error could provide more clues.

To continue talking to Dosu, mention @dosu.