What to Expect
| Area | Behavior |
|---|---|
| YouRouter gateway | Does not require a separate per-endpoint integration for each model provider. |
| Provider limits | The upstream provider may return rate limit or concurrency errors. |
| Automatic routing | Omitting vendor, or using vendor: auto, lets YouRouter route to available providers for the requested model. |
| Pinned provider | If you set vendor, your request depends on that provider’s availability and limits. |
Recommended Retry Pattern
For model API calls, retry transient failures with exponential backoff.429rate limit or concurrency responses500gateway or provider errors- temporary network failures
Concurrency Tips
- Start with conservative concurrency in production and increase gradually.
- Use
vendor: autounless your integration requires a specific provider. - Keep model IDs configurable so you can switch models without code changes.
- Log the request timestamp, model, vendor mode, and request ID for troubleshooting.
- For streaming responses, treat dropped connections as retryable only if your application can safely restart the request.