Skip to content

Commit

Permalink
fixed auth code
Browse files Browse the repository at this point in the history
  • Loading branch information
csolar committed Apr 15, 2023
1 parent 8916b76 commit 899c815
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autogpt/memory/weaviate.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ def _create_schema(self):

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

Expand Down

0 comments on commit 899c815

Please sign in to comment.