Repository navigation
docs: Document API rate limits and how to build a client that handles them - #911
promptless[bot] wants to merge 4 commits into
Conversation
…tive rate-limit claims, send-requests fixes
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
|
@Promptless Apply these two fixes only: Fix 1 — Remove unnecessary comma before “because” in serverless/endpoints/send-requests.mdx Current: Retrying /run or /runsync after a network timeout or 5xx error can create a duplicate job, because the first request may have been queued before the connection failed. Fixed: Retrying /run or /runsync after a network timeout or 5xx error can create a duplicate job because the first request may have been queued before the connection failed. Fix 2 — Remove awkward commas in the same paragraph in serverless/endpoints/send-requests.mdx Current: A duplicate job runs, and is billed, separately. Fixed: A duplicate job runs and is billed separately. |
|
In reply to this discussion Got it: I'll apply only the two comma fixes in serverless/endpoints/send-requests.mdx. I'll reply here once the suggestion is updated. |
|
In reply to this discussion I applied both comma fixes exactly as written in serverless/endpoints/send-requests.mdx. The paragraph now reads: "…can create a duplicate job because the first request may have been queued before the connection failed. A duplicate job runs and is billed separately." Nothing else changed. Docs PR: #911 |
Open in Promptless
Greg Wester asked for more guidance on API limits, specifically how to program an HTTP client defensively against Runpod's APIs. This revision addresses Lavanya Gunreddi's style and accuracy review.
What changed
api-reference-v2/rate-limits.mdx). Documents the per-userminute/hour/dayquota windows, theRateLimitandRateLimit-Policyheaders returned on authenticated responses, and the429response withRetry-Afterand aproblem+jsonbody. Adds client guidance, a Python example client, an explanation of how the example works, and a "Next steps" section. Quota values are labeled as illustrative, and readers are told to read their real quotas fromRateLimit-Policy./runsync), polling/statuswith a growing interval or using webhooks//stream, and avoiding duplicate jobs when retrying/run//runsync, plus a Python submit-and-poll example. Also fixes the opening curl example (-x→-X), sentence-cases the rate-limit table headers, and adds final periods to the "Dynamic rate limiting" list.docs.json: adds the new page to the API v2 group after the Overview.Review feedback
seconds_until_reset.Retry-After, so the Serverless bullet and the Serverless and vLLM examples no longer read it and use exponential backoff with jitter instead. Only the API v2 example readsRetry-After, asint(...)to match the spec's integer type, so the inconsistency is gone.send-requests.mdxfixes: all three applied.send-requests.mdx, both applied verbatim: removed the comma before "because", and changed "A duplicate job runs, and is billed, separately" to "A duplicate job runs and is billed separately".Verification
api-reference-v2/openapi.json.Trigger Events
promptless/api-rate-limit-client-guidance) against the Runpod docs style g...Tip: Use Vale? Point your collection at your vale.ini in Configuration.