Skip to content

Commit dae7585

Browse files
CaralHsiCopilot
andauthored
Update src/memos/embedders/universal_api.py
Co-authored-by: Copilot <[email protected]>
1 parent 6917183 commit dae7585

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/memos/embedders/universal_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self, config: UniversalAPIEmbedderConfig):
1717
def embed(self, texts: list[str]) -> list[list[float]]:
1818
if self.provider == "openai":
1919
response = self.client.embeddings.create(
20-
model=self.config.get("model_name_or_path", "text-embedding-3-large"),
20+
model=getattr(self.config, "model_name_or_path", "text-embedding-3-large"),
2121
input=texts,
2222
)
2323
return [r.embedding for r in response.data]

0 commit comments

Comments
 (0)