Skip to content

Commit

Permalink
Update onnx_mini_lm_l6_v2.py
Browse files Browse the repository at this point in the history
fix for chroma-core#2910

specify timeout, as start of download might take some time because of corporate proxies, firewalls, content scanning etc.
  • Loading branch information
bmerkle authored Oct 8, 2024
1 parent ff69c4d commit 2454dc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chromadb/utils/embedding_functions/onnx_mini_lm_l6_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def _download(self, url: str, fname: str, chunk_size: int = 1024) -> None:
which makes mypy unhappy. If some smart folk knows how to fix this in an
elegant way, please do so.
"""
with httpx.stream("GET", url) as resp:
with httpx.stream("GET", url, timeout=None) as resp:
total = int(resp.headers.get("content-length", 0))
with open(fname, "wb") as file, self.tqdm(
desc=str(fname),
Expand Down

0 comments on commit 2454dc2

Please sign in to comment.