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

chore: add example demonstrating batching many requests without hitting usage limits #649

Closed
wants to merge 2 commits into from

Conversation

mrkiura
Copy link

@mrkiura mrkiura commented Sep 1, 2024

Adds an example that batches prompts to customizable batch sizes to avoid hitting rate limits.

The example assumes a user on the free tier, who is limited to 5 requests per minute. Other usage tiers can adjust the batch_size argument to the make_batch function based on the respective rates per minute.

@mrkiura mrkiura requested a review from a team as a code owner September 1, 2024 19:49
@RobertCraigie
Copy link
Collaborator

Thanks for the PR! There is now a Message Batches API so I'm going to close this.

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

Successfully merging this pull request may close these issues.

2 participants