-
Notifications
You must be signed in to change notification settings - Fork 902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Genesis rate limit #215
Comments
I faced the same issue and am running into that token limit problem quite often with swarm agency. |
Hey @ErikHougaard, from agency_swarm.agency.genesis import GenesisAgency
from dotenv import load_dotenv
load_dotenv()
agency = GenesisAgency(with_browsing=False,
max_prompt_tokens=10000,
max_completion_tokens=25000,
)
demo = agency.demo_gradio(height=900)
# or for console version
# agency.run_demo() If you want to learn more on what these paramters do, here's a link to oai's documentation: @achimstruve, you can use the same approach to limit tokens agency-wide, but you can also set the max tokens for each agent idividually, if you want more flexebility for your agency. |
This issue is stale because it has been open for 30 days with no activity. Please upgrade to the latest version and test it again. |
This issue was closed because it has been inactive for 14 days since being marked as stale. If the issue still persists, please reopen. |
First of all, thank you for developing such an amazing framework. I am just learning how to build agents and your tools have saved me a ton of time.
I have been trying to uses Genesis for creating an agency, and it seems to work like a charm. However, after some time it fails due to the OpenAI rate limit of 30000 TPM.
Would it make sense to implement a throttling feature to prevent this, or is there another trick?
The text was updated successfully, but these errors were encountered: