The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community[patch]: octoai embeddings bug fix (#17216)
Bassem Yacoube4e3ed7f043ce
diff --git a/libs/community/langchain_community/embeddings/octoai_embeddings.py b/libs/community/langchain_community/embeddings/octoai_embeddings.pyindex a93fa4e03a..f006a437a4 100644--- a/libs/community/langchain_community/embeddings/octoai_embeddings.py+++ b/libs/community/langchain_community/embeddings/octoai_embeddings.py@@ -80,7 +80,7 @@ class OctoAIEmbeddings(BaseModel, 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