diff --git a/integrations/jina/src/haystack_integrations/components/embedders/jina/document_embedder.py b/integrations/jina/src/haystack_integrations/components/embedders/jina/document_embedder.py index 50ac77fe8..bbac547c3 100644 --- a/integrations/jina/src/haystack_integrations/components/embedders/jina/document_embedder.py +++ b/integrations/jina/src/haystack_integrations/components/embedders/jina/document_embedder.py @@ -160,7 +160,7 @@ def _embed_batch( batch = texts_to_embed[i : i + batch_size] response = self._session.post( JINA_API_URL, - json={"input": batch, "model": self.model_name, **(parameters if parameters is not None else {})}, + json={"input": batch, "model": self.model_name, **(parameters or {})}, ).json() if "data" not in response: raise RuntimeError(response["detail"])