Skip to content

Commit

Permalink
fix(agent_builder): fix agent builder error when using file_location.
Browse files Browse the repository at this point in the history
  • Loading branch information
kev1nzh37 authored Nov 19, 2024
1 parent fd50301 commit 25af670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autogen/agentchat/contrib/agent_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def __init__(
builder_filter_dict.update({"model": builder_model})
if len(builder_model_tags) != 0:
builder_filter_dict.update({"tags": builder_model_tags})
builder_config_list = autogen.config_list_from_json(config_file_or_env, filter_dict=builder_filter_dict)
builder_config_list = autogen.config_list_from_json(config_file_or_env, file_location=config_file_location, filter_dict=builder_filter_dict)
if len(builder_config_list) == 0:
raise RuntimeError(
f"Fail to initialize build manager: {builder_model}{builder_model_tags} does not exist in {config_file_or_env}. "
Expand Down

0 comments on commit 25af670

Please sign in to comment.