Skip to content
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

I want to set up API request limit, what should I do? #82

Open
dangyuuki123 opened this issue Oct 21, 2024 · 1 comment
Open

I want to set up API request limit, what should I do? #82

dangyuuki123 opened this issue Oct 21, 2024 · 1 comment

Comments

@dangyuuki123
Copy link

Hi, my Ai system can't call too much, I tried to do sleep for asyncio but it doesn't work, how can I limit the calling speed like microsoft's graphrag?

@rangehow
Copy link
Collaborator

see *_max_async

best_model_max_async: int = 16
cheap_model_func: callable = gpt_4o_mini_complete
cheap_model_max_token_size: int = 32768
cheap_model_max_async: int = 16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants