fixed auth code
parent
8916b76f11
commit
899c815676
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue