Skip to content

The agent engineering platform.

Add aleph alpha api key attribute (#4489)

Davis Chaseb77e103ca6df
diff --git a/langchain/embeddings/aleph_alpha.py b/langchain/embeddings/aleph_alpha.py
index aa207d3e25..f6ca5008ed 100644
--- a/langchain/embeddings/aleph_alpha.py
+++ b/langchain/embeddings/aleph_alpha.py
@@ -46,6 +46,8 @@ class AlephAlphaAsymmetricSemanticEmbedding(BaseModel, Embeddings):
control_log_additive: Optional[bool] = True
"""Apply controls on prompt items by adding the log(control_factor)
to attention scores."""
+ aleph_alpha_api_key: Optional[str] = None
+ """API key for Aleph Alpha API."""
@root_validator()
def validate_environment(cls, values: Dict) -> Dict: