All MicroEvals
Async python implementation
Create MicroEval
Header image for Async python implementation

Async python implementation

Models are tasked with implementing a specific type of less commmon rate limiter which must be compatible with a third party library aiohttp

Prompt

Implement an async request limiter in compatible with the open-source Python framework aiohttp. Demonstrate its usage and how it integrates with a aiohttp ClientSession making async parallel requests. The rate limiter should be able to enforce a set minimum interval in seconds between the initizaltion of new requests. Reuqests must still be able to execute in paralell. The response time for a request must not affect the timing of later requests.

Drag to resize
Drag to resize
Drag to resize
Drag to resize