hi. i have 5 openai api keys. how can i rotate acr...
# agents
a
hi. i have 5 openai api keys. how can i rotate across the agents in a round robin way, please help. @refined-appointment-81829
g
What does your code look like? I would personally suggest using
random.choice
right before you intialize your LLM client.
e.g. pass it in
Copy code
return openai.LLM(
                base_url=base_url,
                model=model,
                temperature=temperature,
                api_key=randomly_selected
            )