fix: increase Batch API upload timeout to 600s for large payloads

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-04-24 00:31:50 +02:00
parent 38684dd903
commit 5da5a5597b

View File

@@ -2247,7 +2247,7 @@ async def create_anthropic_batch(
"content-type": "application/json",
}
async with httpx.AsyncClient(timeout=60) as client:
async with httpx.AsyncClient(timeout=600) as client:
resp = await client.post(
f"{ANTHROPIC_API_URL}/messages/batches",
headers=headers,