Mistral AI Rate Limit Manager

•
1.6k
•

Implements robust rate limiting, exponential backoff, and request throughput optimization for Mistral AI API integrations.

This skill provides Claude Code with specialized patterns for managing Mistral AI's API constraints, ensuring applications remain stable and performant. It includes comprehensive logic for tracking both Requests Per Minute (RPM) and Tokens Per Minute (TPM) across different model tiers including Small, Medium, Large, and Embed. By implementing token-aware rate limiters, handling HTTP 429 'Too Many Requests' errors with exponential backoff, and providing intelligent model-tier routing, it prevents service interruptions and optimizes throughput for developers building Mistral-powered applications.

主要功能

01Utilization Metrics: Generates status reports to monitor current API usage against tier limits.
02Exponential Backoff: Automatically handles 429 errors with intelligent retry logic to minimize downtime.
03Batch Optimization: Safely manages large embedding or chat completion batches with rate awareness.
04Dual-Constraint Tracking: Monitors both Requests Per Minute (RPM) and Tokens Per Minute (TPM).
05Model-Tier Routing: Dynamically switches between Mistral models based on current capacity and rate limits.
061,613 GitHub stars

使用场景

01Resolving frequent 'Too Many Requests' errors in Claude Code development projects.
02Building high-throughput production applications using Mistral AI models.
03Implementing cost-effective model fallback strategies when premium tier limits are reached.