someting wrong with configure Claude model #5105

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

Originally created by @XeonSid on GitHub (Aug 19, 2024).

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

latest

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

image

✔️ Expected Behavior

configuration is done

Actual Behavior

Error code: 401 - {'message': '暂不支持指定的模型 (request id: 66c318b2441c54614ca430b073f8a200)', 'type': 'chat_api_error'}

Originally created by @XeonSid on GitHub (Aug 19, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [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 this 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. ### Dify version latest ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![image](https://github.com/user-attachments/assets/c3a236a5-7f48-45f1-9444-c1846ddca79c) ### ✔️ Expected Behavior configuration is done ### ❌ Actual Behavior Error code: 401 - {'message': '暂不支持指定的模型 (request id: 66c318b2441c54614ca430b073f8a200)', 'type': 'chat_api_error'}
yindo added the 🐞 bug label 2026-02-21 18:09:24 -05:00
yindo closed this issue 2026-02-21 18:09:24 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Aug 19, 2024):

@XeonSid Hello there! I'm here to assist you with any bugs, questions, or contributions you may have regarding the repository. Let's work together to resolve your issue.

To resolve the error code 401 with the message "暂不支持指定的模型" when configuring the Claude model in a self-hosted (Docker) environment, follow these steps:

  1. Check Model Support: Ensure that the Claude model is supported in your environment. Claude does not support the Embedding model, which might be causing the issue.

  2. Configure Default Models: Set other default inference models and Embedding models in the settings. Navigate to 设置 --> 模型供应商 and configure the appropriate models.

  3. Update Configuration: Ensure your configuration is up-to-date and compatible with the models you are using.

Additionally, if you are using Docker, ensure that the service is accessible from the Docker container by using the appropriate network IP address or host.docker.internal [1][2].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Aug 19, 2024): <!-- Greeting --> @XeonSid Hello there! I'm here to assist you with any bugs, questions, or contributions you may have regarding the repository. Let's work together to resolve your issue. <!-- Answer --> To resolve the error code 401 with the message "暂不支持指定的模型" when configuring the Claude model in a self-hosted (Docker) environment, follow these steps: 1. **Check Model Support**: Ensure that the Claude model is supported in your environment. Claude does not support the Embedding model, which might be causing the issue. 2. **Configure Default Models**: Set other default inference models and Embedding models in the settings. Navigate to **设置 --> 模型供应商** and configure the appropriate models. 3. **Update Configuration**: Ensure your configuration is up-to-date and compatible with the models you are using. Additionally, if you are using Docker, ensure that the service is accessible from the Docker container by using the appropriate network IP address or `host.docker.internal` <sup>[[1]](https://github.com/langgenius/dify-docs/blob/main/zh_CN/learn-more/faq/llms-use-faq.md)</sup><sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/en/guides/model-configuration/ollama.md)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@crazywoola commented on GitHub (Aug 19, 2024):

This should check your model provider, this 'claude provider' only works for the official api.

@crazywoola commented on GitHub (Aug 19, 2024): This should check your model provider, this 'claude provider' only works for the official api.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#5105