fixed auth code

pull/424/head
cs0lar 2023-04-15 18:55:45 +01:00
parent 8916b76f11
commit 899c815676
1 changed files with 2 additions and 2 deletions

View File

@ -47,9 +47,9 @@ class WeaviateMemory(MemoryProviderSingleton):
def _build_auth_credentials(self, cfg):
if cfg.weaviate_username and cfg.weaviate_password:
return weaviate.auth.AuthClientPassword(cfg.weaviate_username, cfg.weaviate_password)
return weaviate.AuthClientPassword(cfg.weaviate_username, cfg.weaviate_password)
if cfg.weaviate_api_key:
return weaviate.auth.AuthApiKey(api_key=cfg.weaviate_api_key)
return weaviate.AuthApiKey(api_key=cfg.weaviate_api_key)
else:
return None