Skip to content

Commit

Permalink
community[patch]: octoai embeddings bug fix (langchain-ai#17216)
Browse files Browse the repository at this point in the history
fixes a bug in octoa_embeddings provider
  • Loading branch information
AI-Bassem authored Feb 8, 2024
1 parent 780e84a commit 4e3ed7f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def _compute_embeddings(
json_data = resp_json["data"]
for item in json_data:
if "embedding" in item:
embedding.append(item["embedding"])
embedding = item["embedding"]

except Exception as e:
raise ValueError(f"Error raised by the inference endpoint: {e}") from e
Expand Down

0 comments on commit 4e3ed7f

Please sign in to comment.