mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-14 15:16:21 +00:00
community[patch]: octoai embeddings bug fix (#17216)
fixes a bug in octoa_embeddings provider
This commit is contained in:
parent
780e84ae79
commit
4e3ed7f043
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user