Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /BerriAI_litellm /litellm /rust_bridge /timeouts.py
| """Shared timeout conversion for the native Rust bridges.""" | |
| from __future__ import annotations | |
| import httpx | |
| def timeout_to_seconds(timeout: float | httpx.Timeout | None) -> float | None: | |
| if timeout is None: | |
| return None | |
| if isinstance(timeout, httpx.Timeout): | |
| return timeout.read | |
| return float(timeout) | |
Xet Storage Details
- Size:
- 333 Bytes
- Xet hash:
- 2ce420ba45aef976bd213988bfae5e970659d1506880d5eb574b2cbc11e3a050
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.