refactor: Update CohereEmbeddingsComponent to use type hinting for CohereEmbeddings return value
This commit is contained in:
parent
c811e5f045
commit
96f77878c1
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ class CohereEmbeddingsComponent(LCModelComponent):
|
||||||
]
|
]
|
||||||
|
|
||||||
def build_embeddings(self) -> Embeddings:
|
def build_embeddings(self) -> Embeddings:
|
||||||
return CohereEmbeddings(
|
return CohereEmbeddings( # type: ignore
|
||||||
cohere_api_key=self.cohere_api_key,
|
cohere_api_key=self.cohere_api_key,
|
||||||
model=self.model,
|
model=self.model,
|
||||||
truncate=self.truncate,
|
truncate=self.truncate,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue