Add --timeout flag to configure API request timeout
Open
- Dominant language
- Python
- Stars
- 173
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
## Problem
The CLI uses a hardcoded 30-second timeout for all API requests (defined in `api.py` as `DEFAULT_TIMEOUT = 30.0`). Users on slow connections or processing large documents may need more time.
## Solution
Add a global `--timeout` flag to override the default timeout:
```bash
jina read https://large-pdf-url.com --timeout 60
jina search "complex query" --timeout 45
```
## Use Case
Users with slow network connections or when fetching large documents (PDFs, long web pages) that take longer than 30 seconds to process.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.