Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sonichi committed Sep 16, 2023
1 parent 1517105 commit 45ddfa2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions autogen/oai/openai_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def config_list_openai_aoai(
"""
if "OPENAI_API_KEY" not in os.environ and exclude != "openai":
try:
print(f"{key_file_path}/{openai_api_key_file}")
with open(f"{key_file_path}/{openai_api_key_file}") as key_file:
os.environ["OPENAI_API_KEY"] = key_file.read().strip()
except FileNotFoundError:
Expand Down
Empty file removed test/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion test/test_notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def run_notebook(input_nb, output_nb="executed_openai_notebook.ipynb", save=Fals
from nbconvert.preprocessors import CellExecutionError

try:
nb_loc = os.path.join(here, os.pardir, os.pardir, "notebook")
nb_loc = os.path.join(here, os.pardir, "notebook")
file_path = os.path.join(nb_loc, input_nb)
with open(file_path) as nb_file:
nb = nbformat.read(nb_file, as_version=4)
Expand Down

0 comments on commit 45ddfa2

Please sign in to comment.