Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yiranwu0 committed Dec 9, 2023
1 parent d37136c commit c453552
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/agentchat/test_function_call_groupchat.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ def get_random_number():
groupchat = autogen.GroupChat(agents=[user_proxy, coder], messages=[], max_round=7)

# pass in llm_config with functions
with pytest.raises(ValueError, match="Should raise ValueError because of 'functions' passed to GroupChatManager"):
with pytest.raises(
ValueError,
match="GroupChatManager is not allowed to make function/tool calls. Please remove the 'functions' or 'tools' config in 'llm_config' you passed in.",
):
manager = autogen.GroupChatManager(groupchat=groupchat, llm_config=llm_config)

# pass in llm_config without functions
Expand Down

0 comments on commit c453552

Please sign in to comment.