mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-29 10:54:43 +01:00
added support of API key based auth
This commit is contained in:
@@ -46,6 +46,8 @@ 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)
|
||||
if cfg.weaviate_api_key:
|
||||
return weaviate.auth.AuthApiKey(api_key=cfg.weaviate_api_key)
|
||||
else:
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user