File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 77from langchain_core .runnables import RunnableLambda
88from langchain_core .prompts import ChatPromptTemplate
99from langchain_core .output_parsers .string import StrOutputParser
10- from langchain_community . llms import Cohere
10+ from langchain_cohere import ChatCohere
1111from langchain_openai import ChatOpenAI , OpenAI
1212from langchain_google_genai import ChatGoogleGenerativeAI
1313
@@ -208,7 +208,7 @@ def load_language_embedder(self) -> embedders.EmbedderSettings:
208208 # For Azure avoid automatic embedder selection
209209
210210 # Cohere
211- elif type (self ._llm ) in [Cohere ]:
211+ elif type (self ._llm ) in [ChatCohere ]:
212212 embedder = embedders .EmbedderCohereConfig .get_embedder_from_config (
213213 {
214214 "cohere_api_key" : self ._llm .cohere_api_key ,
You can’t perform that action at this time.
0 commit comments