dify icon indicating copy to clipboard operation
dify copied to clipboard

Optimize LLM Platform Model Management: Automatically Inherit API Keys and Simplify Custom Model Addition

Open BigUncle opened this issue 9 months ago • 1 comments

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: Optimize LLM Platform Model Management: Automatically Inherit API Keys and Simplify Custom Model Addition

Is this request related to a challenge you are facing?

After adding an LLM platform and entering the API key, if the plugin does not automatically fetch all models from the platform, users need to manually copy and paste the API key again when adding a custom model ID later. This repetitive operation is very inconvenient and affects work efficiency.

What is the feature you'd like to see?

  1. Automatic API Key Inheritance: After a user configures an API key for an LLM platform, Dify should automatically remember the API key.
  2. Simplified Custom Model Addition Process: When adding a custom model ID under the same platform, Dify should automatically populate the saved API key to avoid users having to enter it repeatedly.
  3. API Key Override Mechanism: Allow users to manually enter a new API key to override the original default platform API key when adding a custom model ID, to support the need to manage different model IDs with different API keys.

How will this feature improve their workflow / experience?

This feature can effectively save time, reduce repetitive operations, and reduce the possibility of errors, thereby improving the efficiency and experience of users managing LLM models in Dify.

Additional context or comments?

  • Dify should take secure encryption measures when storing API keys to protect user privacy.
  • There should be a clear prompt when the user manually overrides the API key to avoid misoperation.

Can you help with this feature?

I am willing to provide more feedback and participate in testing to ensure that this feature meets user needs.

2. Additional context or comments

No response

3. Can you help us with this feature?

  • [ ] I am interested in contributing to this feature.

BigUncle avatar Apr 16 '25 14:04 BigUncle

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 enhancements to the model management system in Dify.
  • Focus on automating API key inheritance and streamlining custom model addition.
  • Aims to reduce repetitive tasks and improve user efficiency.
  • No activity or comments have been made on the issue yet.

Next Steps

  • Please let us know if this issue is still relevant to the latest version of the Dify repository by commenting here.
  • If there is no further activity, the issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar May 17 '25 16:05 dosubot[bot]