From 45ddfa2dd01065c2c49e3b25b0835bfcf004ff94 Mon Sep 17 00:00:00 2001 From: Chi Wang Date: Sat, 16 Sep 2023 19:03:53 +0000 Subject: [PATCH] cleanup --- autogen/oai/openai_utils.py | 1 + test/__init__.py | 0 test/test_notebook.py | 2 +- 3 files changed, 2 insertions(+), 1 deletion(-) delete mode 100644 test/__init__.py diff --git a/autogen/oai/openai_utils.py b/autogen/oai/openai_utils.py index 0215eeeea..9df981b56 100644 --- a/autogen/oai/openai_utils.py +++ b/autogen/oai/openai_utils.py @@ -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: diff --git a/test/__init__.py b/test/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/test/test_notebook.py b/test/test_notebook.py index 84a040217..880249cdf 100644 --- a/test/test_notebook.py +++ b/test/test_notebook.py @@ -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)