-
Notifications
You must be signed in to change notification settings - Fork 109
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Feature Description
Add support for configuring multiple accounts (OpenAI API keys/users) in the authentication backend. Implement a round-robin method so that incoming API requests are distributed evenly across all configured accounts.
Use Case
This feature will allow users to:
- Load-balance requests to OpenAI APIs across several accounts
- Reduce rate-limiting issues by spreading requests
- Use multiple API keys for increased throughput
Proposed Implementation
- Extend configuration to accept an array/list of API credentials/accounts.
- Refactor the request dispatch logic to rotate through available accounts using a round-robin algorithm.
- Ensure account selection is thread-safe (if applicable to the platform).
- Optionally allow prioritizing or weighting accounts if desired.
Compliance Consideration
- This feature is for personal development use
- This feature does not violate or circumvent OpenAI's Terms of Service
- This feature is not intended for commercial resale or multi-user access
Alternatives Considered
- Manually switching out API keys
- Simple failover without true load balancing
Additional Context
Would provide more resilient and efficient API utilization, especially under high-load scenarios.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request