Add aleph alpha api key attribute (#4489)

@tugot17 applied your change to master
dev2049/self_query_integration
Davis Chase 1 year ago committed by GitHub
parent 3ce29cb4a6
commit b77e103ca6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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:

Loading…
Cancel
Save