Increase OpenAI file blob upload timeout from 60 seconds to 5 minutes (#47122)

GitOrigin-RevId: 11069394b3cfe24af4d5efb709ee4f65b88c90de
This commit is contained in:
Andrew Wilkes
2026-09-21 23:00:40 +00:00
committed by copyberry
parent 4a8cfe6bb7
commit 171dd0d39c
+1 -1
View File
@@ -184,7 +184,7 @@ pub async fn upload_openai_file(
let upload_started_at = Instant::now();
let upload_response = client_pool
.put(&create_payload.upload_url)
.timeout(OPENAI_FILE_REQUEST_TIMEOUT)
.timeout(Duration::from_secs(5 * 60))
.header("x-ms-blob-type", "BlockBlob")
.header("x-ms-client-request-id", &azure_client_request_id)
.header(CONTENT_LENGTH, file_size_bytes)