mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
Increase OpenAI file blob upload timeout from 60 seconds to 5 minutes (#47122)
GitOrigin-RevId: 11069394b3cfe24af4d5efb709ee4f65b88c90de
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user