Auto-Trim Whitespace in Model ID to Prevent Authentication Errors
Self Checks
- [x] I have searched for existing issues search for existing issues, including closed ones.
- [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
- [x] Please do not modify this template :) and fill in all the required fields.
1. Is this request related to a challenge you're experiencing? Tell me about your story.
Title: Auto-Trim Whitespace in Model ID to Prevent Authentication Errors
Post: I'd like to propose a feature that addresses a common challenge: model ID validation failures due to unintended whitespace.
Is this request related to a challenge you are facing? Yes, all models I tested experienced this issue, leading to "Credentials validation failed with status code 401" errors when the model ID had leading or trailing spaces.
What is the feature you'd like to see? I propose that Dify automatically trim leading and trailing whitespace from the model ID field upon submission. This would ensure that accidental spaces do not cause authentication failures.
How will this feature improve their workflow / experience? This feature would save time, reduce errors, and improve overall efficiency by preventing authentication issues caused by whitespace in model IDs. It will also help new users avoid common pitfalls.
Additional Context or Comments No additional context.
Can you help with this feature? Yes, I am willing to assist with testing and discussions.
2. Additional context or comments
No response
3. Can you help us with this feature?
- [x] I am interested in contributing to this feature.
Hi, @BigUncle. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.
Issue Summary:
- Proposed feature to automatically trim whitespace from model IDs to prevent authentication errors.
- Aimed at improving user experience by reducing errors like "Credentials validation failed with status code 401".
- You expressed willingness to assist with testing and further discussions.
- No additional comments or activities have occurred since the proposal.
Next Steps:
- Please confirm if this issue is still relevant to the latest version of the Dify repository by commenting here.
- If no updates are provided, the issue will be automatically closed in 15 days.
Thank you for your understanding and contribution!