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
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.
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:
Proposed Implementation
Compliance Consideration
Alternatives Considered
Additional Context
Would provide more resilient and efficient API utilization, especially under high-load scenarios.