BuilderIO / BuilderIO/micro-agent

Add request rate limiting for users on OpenAI `Usage tier 1`

Open
#31 0 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
TypeScript
Stars
4.3k
Forks
380
PR merge metrics
No merged PRs in 30d

Description

My current usage limits are pretty low (I'm not a prolific user of OpenAI API). I've not looked into the source code yet, but I suspect that micro-agent is sending more requests / using more tokens than the Usage tier 1 allows:


MODELTOKEN LIMITSREQUEST AND OTHER LIMITSBATCH QUEUE LIMITSgpt-4o

30,000 TPM
500 RPM
90,000 TPD
gpt-3.5-turbo
60,000 TPM
500 RPM
10,000 RPD
200,000 TPD
gpt-4
10,000 TPM
500 RPM
10,000 RPD
100,000 TPD
gpt-4-turbo
30,000 TPM
500 RPM
90,000 TPD
text-embedding-3-small
1,000,000 TPM
3,000 RPM
3,000,000 TPD
dall-e-3
5 images per minute
tts-1
50 RPM
whisper-1
50 RPM

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points; start by locating where micro-agent sends OpenAI requests and uses tokens. Confirm the Usage tier 1 request and token limits and define how enforcement should work before choosing an implementation. Done means requests remain within the agreed limits, with tests covering the relevant behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
ai, api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.