Run failed: [openrouter] Error: 'choices' #6039

Closed
opened 2026-02-21 18:13:48 -05:00 by yindo · 1 comment
Owner

Originally created by @Namec999 on GitHub (Oct 11, 2024).

Self Checks

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

Provide a description of requested docs changes

When using an openrouter model some times i got this :

Run failed: [openrouter] Error: 'choices'

and some other times it works

Originally created by @Namec999 on GitHub (Oct 11, 2024). ### Self Checks - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Provide a description of requested docs changes When using an openrouter model some times i got this : Run failed: [openrouter] Error: 'choices' and some other times it works
yindo added the 🐞 bug🤔 cant-reproduce labels 2026-02-21 18:13:48 -05:00
yindo closed this issue 2026-02-21 18:13:48 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Oct 11, 2024):

I found similar issues related to the error you're encountering:

  1. LLM NODE with openrouter : Run failed: [openrouter] Error: 'choices' (Closed)

    • Solution: Check for misconfigurations or missing parameters related to the large model you're using. Ensure all required parameters are correctly configured, including api_key and context_size. Verify that optional fields are supported and correctly set up. Review the model name, API key, model context size, and max tokens to sample. Refer to OpenRouter's configuration documentation for more guidance.
  2. OpenRouter error in workflow (Closed)

    • Solution: Similar to the above, ensure all required parameters for your large model are correctly configured. Check the model_credential_schema for required fields such as api_key and context_size. Verify optional fields and review the model name, API key, model context size, and max tokens to sample.

These solutions suggest verifying your configuration settings to ensure all necessary parameters are correctly set up [1][2].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Oct 11, 2024): <!-- Answer --> I found similar issues related to the error you're encountering: 1. **[LLM NODE with openrouter : Run failed: [openrouter] Error: 'choices'](https://github.com/langgenius/dify/issues/9197)** (Closed) - **Solution**: Check for misconfigurations or missing parameters related to the large model you're using. Ensure all required parameters are correctly configured, including `api_key` and `context_size`. Verify that optional fields are supported and correctly set up. Review the model name, API key, model context size, and max tokens to sample. Refer to OpenRouter's configuration documentation for more guidance. 2. **[OpenRouter error in workflow](https://github.com/langgenius/dify/issues/3695)** (Closed) - **Solution**: Similar to the above, ensure all required parameters for your large model are correctly configured. Check the `model_credential_schema` for required fields such as `api_key` and `context_size`. Verify optional fields and review the model name, API key, model context size, and max tokens to sample. These solutions suggest verifying your configuration settings to ensure all necessary parameters are correctly set up <sup>[[1]](https://github.com/langgenius/dify/issues/9197)</sup><sup>[[2]](https://github.com/langgenius/dify/issues/3695)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6039