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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user