MCPcopy
hub / github.com/CodebuffAI/codebuff / markChatGptOAuthRateLimited

Function markChatGptOAuthRateLimited

sdk/src/impl/model-provider.ts:46–51  ·  view source on GitHub ↗
(resetAt?: Date)

Source from the content-addressed store, hash-verified

44 * and use Codebuff backend until the reset time.
45 */
46export function markChatGptOAuthRateLimited(resetAt?: Date): void {
47 const fiveMinutesFromNow = Date.now() + 5 * 60 * 1000
48 chatGptOAuthRateLimitedUntil = resetAt
49 ? resetAt.getTime()
50 : fiveMinutesFromNow
51}
52
53/**
54 * Check if ChatGPT OAuth is currently rate-limited.

Callers 3

promptAiSdkStreamFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected