Skip to content

Bug Report: MultimodalConversableAgent within GroupChat #628

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
BeibinLi opened this issue Nov 11, 2023 · 2 comments
Closed

Bug Report: MultimodalConversableAgent within GroupChat #628

BeibinLi opened this issue Nov 11, 2023 · 2 comments
Assignees

Comments

@BeibinLi
Copy link
Contributor

A simple example is shown below:

agent1 = MultimodalConversableAgent(
    name="image-explainer-1",
    max_consecutive_auto_reply=10,
    llm_config={"config_list": config_list_gpt4v, "temperature": 0.5, "max_tokens": 300},
    system_message="Your image description is poetic and engaging.",
)
agent2 = MultimodalConversableAgent(
    name="image-explainer-2",
    max_consecutive_auto_reply=10,
    llm_config={"config_list": config_list_gpt4v, "temperature": 0.5, "max_tokens": 300},
    system_message="Your image description is factual and to the point.",
)

user_proxy = autogen.UserProxyAgent(
    name="User_proxy",
    system_message="Ask both image explainer 1 and 2 for their description.",
    human_input_mode="NEVER",  # Try between ALWAYS or NEVER
    max_consecutive_auto_reply=10,
)

# We set max_round to 5
groupchat = autogen.GroupChat(agents=[agent1, agent2, user_proxy], messages=[], max_round=5)
group_chat_manager = autogen.GroupChatManager(groupchat=groupchat, llm_config=gpt4_llm_config)

user_proxy.initiate_chat(group_chat_manager,
                        message=f"""What do you see?
                        <img https://th.bing.com/th/id/R.422068ce8af4e15b0634fe2540adea7a?rik=y4OcXBE%2fqutDOw&pid=ImgRaw&r=0>.""")

The issue is caused by the variable type of system_message, which is different in Multimodal and other conversable agents.

@BeibinLi
Copy link
Contributor Author

This issue is related to #658
We will come back to this issue after fixing #658

@joshkyh
Copy link
Contributor

joshkyh commented Nov 20, 2023

Let's close this after the pytest (#713 (comment)) is implemented..?

@BeibinLi BeibinLi closed this as completed Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants