Skip to content

Commit

Permalink
Remove hugging face API Key
Browse files Browse the repository at this point in the history
  • Loading branch information
Yiannis128 committed Sep 12, 2024
1 parent 20097a9 commit 9075048
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
OPENAI_API_KEY=XXXXXXXXXXX
HUGGINGFACE_API_KEY=YYYYYYYYYY
ESBMC_AI_CFG_PATH=./config.json
1 change: 0 additions & 1 deletion esbmc_ai/api_key_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ class APIKeyCollection(NamedTuple):
"""Class that is used to pass keys to AIModels."""

openai: Optional[str]
huggingface: Optional[str]
3 changes: 1 addition & 2 deletions esbmc_ai/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def get_env_vars() -> None:
if value != None:
values[k] = value

keys: list[str] = ["OPENAI_API_KEY", "HUGGINGFACE_API_KEY", "ESBMC_AI_CFG_PATH"]
keys: list[str] = ["OPENAI_API_KEY", "ESBMC_AI_CFG_PATH"]
values: dict[str, str] = {}

# Load from system env
Expand Down Expand Up @@ -246,7 +246,6 @@ def get_env_vars() -> None:
global api_keys
api_keys = APIKeyCollection(
openai=str(os.getenv("OPENAI_API_KEY")),
huggingface=str(os.getenv("HUGGINGFACE_API_KEY")),
)

global cfg_path
Expand Down

0 comments on commit 9075048

Please sign in to comment.