UNPKG

@juspay/neurolink

Version:

The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002

66 lines (65 loc) • 2.05 kB
{ "$schema": "./provider-rules.schema.json", "id": "retry", "retryPolicies": { "tables": { "OPENAI": { "maxAttempts": 3, "baseDelay": 1000, "maxDelay": 30000, "multiplier": 2 }, "ANTHROPIC": { "maxAttempts": 3, "baseDelay": 1000, "maxDelay": 30000, "multiplier": 1.5 }, "GOOGLE": { "maxAttempts": 4, "baseDelay": 2000, "maxDelay": 30000, "multiplier": 2 }, "BEDROCK": { "maxAttempts": 5, "baseDelay": 1000, "maxDelay": 30000, "multiplier": 1.5 }, "AZURE": { "maxAttempts": 3, "baseDelay": 1000, "maxDelay": 30000, "multiplier": 2 }, "OLLAMA": { "maxAttempts": 1, "baseDelay": 200, "maxDelay": 5000, "multiplier": 1.5 } }, "default": { "maxAttempts": 3, "baseDelay": 1000, "maxDelay": 30000, "multiplier": 2 }, "providerTables": { "openai": "OPENAI", "anthropic": "ANTHROPIC", "googleai": "GOOGLE", "vertex": "GOOGLE", "bedrock": "BEDROCK", "azure": "AZURE", "ollama": "OLLAMA" } }, "retryPolicyNotes": { "scope": "Retry attempts and backoff per provider, read by RetryUtils.getProviderRetryConfig() and exported as PROVIDER_RETRY. A provider with no table gets default.", "providerTables": "Provider name, lowercased with '-' and '_' removed, to its table.", "ANTHROPIC.multiplier": "More conservative backoff than the default.", "OLLAMA": "A local service: one attempt, short delays." } }