Fix cohere embedder (#1353)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from typing import Optional
|
||||
|
||||
from langchain_community.embeddings import CohereEmbeddings
|
||||
from langchain_cohere.embeddings import CohereEmbeddings
|
||||
|
||||
from embedchain.config import BaseEmbedderConfig
|
||||
from embedchain.embedder.base import BaseEmbedder
|
||||
|
||||
@@ -451,6 +451,7 @@ def validate_config(config_data):
|
||||
"mistralai",
|
||||
"nvidia",
|
||||
"ollama",
|
||||
"cohere",
|
||||
),
|
||||
Optional("config"): {
|
||||
Optional("model"): Optional(str),
|
||||
|
||||
Reference in New Issue
Block a user