[integration]: Together embedder added (#1995)

This commit is contained in:
Mayank
2024-10-30 22:21:01 +05:30
committed by GitHub
parent efd45c0c4d
commit d928ea4a2b
5 changed files with 72 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ class EmbedderConfig(BaseModel):
@field_validator("config")
def validate_config(cls, v, values):
provider = values.data.get("provider")
if provider in ["openai", "ollama", "huggingface", "azure_openai", "gemini", "vertexai"]:
if provider in ["openai", "ollama", "huggingface", "azure_openai", "gemini", "vertexai", "together"]:
return v
else:
raise ValueError(f"Unsupported embedding provider: {provider}")