[Enhancement]: Dynamic API Key Randomization and Failover Strategy for AI Providers #6329
chalitbkb
started this conversation in
Feature Requests & Suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What features would you like to see added?
Is it possible to support specifying multiple API keys for GEMINI or other AI providers by separating them with commas, such as "sk-1, sk-2, sk-3, ..."? The system would then randomly select one of the user-defined API keys each time the user interacts with the chatbot. If any of the listed keys are unusable, it would randomly choose another available key. This is because, in some of my personal tasks, I need to use multiple API keys, and some of them may not be functional, so I want to randomly select from the remaining available keys.
More details
Below is a summary of the proposal and requirements in bullet-point format:
Specifying Multiple API Keys:
Users can specify multiple API keys in a single string by separating them with commas, for example:
sk-1, sk-2, sk-3, ...
Random Selection of an API Key:
Each time the user interacts with the chatbot, the system will randomly select one API key from the provided list.
Fallback Mechanism for Unusable API Keys:
Use Case for Personal Tasks:
This approach increases the flexibility and reliability of the AI service, especially in scenarios where multiple API keys are used and some may fail during actual use.
Which components are impacted by your request?
No response
Pictures
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions