Update embedding_component.py

This commit is contained in:
Liam Dowd 2024-08-28 10:32:42 -07:00 committed by GitHub
parent f3fda24ae0
commit 5709b6009e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -154,8 +154,8 @@ class EmbeddingComponent:
"Mistral dependencies not found, install with `poetry install --extras embeddings-mistral`"
) from e
api_key = settings.mistral.api_key
model = settings.mistral.embedding_model
api_key = settings.openai.api_key
model = settings.openai.embedding_model
self.embedding_model = MistralAIEmbedding(
api_key=api_key,