Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
rjambrecic committed Jan 21, 2025
1 parent e673d7a commit 4ef02a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autogen/agentchat/conversable_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def __init__(
}

def _validate_name_if_api_tpye_openai(self, name: str) -> None:
if not self.llm_config or "config_list" not in self.llm_config:
if not self.llm_config or "config_list" not in self.llm_config or len(self.llm_config["config_list"]) == 0:
return

config_list = self.llm_config.get("config_list")
Expand Down

0 comments on commit 4ef02a0

Please sign in to comment.