diff --git a/core/cat/factory/custom_embedder.py b/core/cat/factory/custom_embedder.py index 30934da4c..3e595f6ed 100644 --- a/core/cat/factory/custom_embedder.py +++ b/core/cat/factory/custom_embedder.py @@ -70,7 +70,7 @@ class CustomFastembedEmbeddings(Embeddings): """ def __init__(self, url, model,max_length) -> None: self.url = url - output = httpx.post(f"{url}/embeddings", json={"model": model, "max_length": max_length}) + output = httpx.post(f"{url}/embeddings", json={"model": model, "max_length": max_length}, follow_redirects=True, timeout=None) output.raise_for_status()