From b77e103ca6dfe4d5063e5148e7f9de2e481d3857 Mon Sep 17 00:00:00 2001 From: Davis Chase <130488702+dev2049@users.noreply.github.com> Date: Wed, 10 May 2023 17:29:57 -0700 Subject: [PATCH] Add aleph alpha api key attribute (#4489) @tugot17 applied your change to master --- langchain/embeddings/aleph_alpha.py | 2 ++ 1 file changed, 2 insertions(+) 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: