Skip to content

Commit

Permalink
fix the llm behavior to align with previous behavior (for unit tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
allenanie committed Dec 10, 2024
1 parent 929b901 commit d38580d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opto/utils/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ def __init__(self, config_list: List = None, filter_dict: Dict = None, reset_fre
config_list = autogen.config_list_from_json("OAI_CONFIG_LIST")
except:
config_list = auto_construct_oai_config_list_from_env()
os.environ.update({"OAI_CONFIG_LIST": json.dumps(config_list)})
if len(config_list) > 0:
os.environ.update({"OAI_CONFIG_LIST": json.dumps(config_list)})
config_list = autogen.config_list_from_json("OAI_CONFIG_LIST")
if filter_dict is not None:
config_list = autogen.filter_config_list(config_list, filter_dict)
Expand Down

0 comments on commit d38580d

Please sign in to comment.