Skip to content

Commit

Permalink
Update integrations/jina/src/haystack_integrations/components/embedde…
Browse files Browse the repository at this point in the history
…rs/jina/document_embedder.py

Co-authored-by: Silvano Cerza <[email protected]>
  • Loading branch information
DresAaron and silvanocerza authored Sep 18, 2024
1 parent 048f7a6 commit c0bccaa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit c0bccaa

Please sign in to comment.