()
| 32 | }) |
| 33 | |
| 34 | async function importFresh() { |
| 35 | const mod = await import('../model-provider') |
| 36 | // Ensure clean rate-limit state |
| 37 | mod.resetChatGptOAuthRateLimit() |
| 38 | return mod |
| 39 | } |
| 40 | |
| 41 | test('throws when ChatGPT OAuth is rate-limited in free mode', async () => { |
| 42 | const { getModelForRequest, markChatGptOAuthRateLimited } = |
no outgoing calls
no test coverage detected