LLM NODE with openrouter : Run failed: [openrouter] Error: 'choices' #6021

Closed
opened 2026-02-21 18:13:42 -05:00 by yindo · 2 comments
Owner

Originally created by @Namec999 on GitHub (Oct 10, 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 openrouter as my llm provider some times i have this wiered error :
Run failed: [openrouter] Error: 'choices'

Originally created by @Namec999 on GitHub (Oct 10, 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 openrouter as my llm provider some times i have this wiered error : Run failed: [openrouter] Error: 'choices'
yindo added the 🐞 bug label 2026-02-21 18:13:42 -05:00
yindo closed this issue 2026-02-21 18:13:42 -05:00
Author
Owner

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

I found a similar issue that might help. There was an open issue regarding an OpenRouter error, which was closed. The suggested solution was to 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. You might want to review the model name, API key, model context size, and max tokens to sample. Refer to OpenRouter's configuration documentation for more guidance [1].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Oct 10, 2024): <!-- Answer --> I found a similar issue that might help. There was an open issue regarding an OpenRouter error, which was closed. The suggested solution was to 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. You might want to review the model name, API key, model context size, and max tokens to sample. Refer to OpenRouter's configuration documentation for more guidance <sup>[[1]](https://github.com/langgenius/dify/issues/3695)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@crazywoola commented on GitHub (Oct 10, 2024):

Close as off topic

@crazywoola commented on GitHub (Oct 10, 2024): Close as off topic
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6021