File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -342,6 +342,7 @@ def upload_file(
342342 display_name: Optional[str] = None,
343343 description: Optional[str] = None,
344344 transformation_config: Optional[TransformationConfig] = None,
345+ timeout: int = 600,
345346) -> RagFile:
346347 """
347348 Synchronous file upload to an existing RagCorpus.
@@ -379,6 +380,7 @@ def upload_file(
379380 display_name: The display name of the data file.
380381 description: The description of the RagFile.
381382 transformation_config: The config for transforming the RagFile, like chunking.
383+ timeout: Default is 600 seconds.
382384
383385 Returns:
384386 RagFile.
@@ -433,6 +435,7 @@ def upload_file(
433435 url=upload_request_uri,
434436 files=files,
435437 headers=headers,
438+ timeout=timeout,
436439 )
437440 except Exception as e:
438441 raise RuntimeError("Failed in uploading the RagFile due to: ", e) from e
You can’t perform that action at this time.
0 commit comments