We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbe82da commit d8ebf6cCopy full SHA for d8ebf6c
autogen/oai/openai_utils.py
@@ -237,10 +237,12 @@ def config_list_from_json(
237
if json_str:
238
config_list = json.loads(json_str)
239
else:
240
+ config_list_path = os.path.join(file_location, env_or_file)
241
try:
- with open(os.path.join(file_location, env_or_file)) as json_file:
242
+ with open(config_list_path) as json_file:
243
config_list = json.load(json_file)
244
except FileNotFoundError:
245
+ logging.warning(f"The specified config_list file '{config_list_path}' does not exist.")
246
return []
247
return filter_config(config_list, filter_dict)
248
0 commit comments