diff --git a/autogen/agentchat/contrib/llava_agent.py b/autogen/agentchat/contrib/llava_agent.py index 39c4b2987c8a..b545184c9ccd 100644 --- a/autogen/agentchat/contrib/llava_agent.py +++ b/autogen/agentchat/contrib/llava_agent.py @@ -54,7 +54,7 @@ def __init__( ) assert self.llm_config is not None, "llm_config must be provided." - self.register_reply([Agent, None], reply_func=LLaVAAgent._image_reply, position=1) + self.register_reply([Agent, None], reply_func=LLaVAAgent._image_reply, position=2) def _image_reply(self, messages=None, sender=None, config=None): # Note: we did not use "llm_config" yet. diff --git a/autogen/agentchat/contrib/retrieve_user_proxy_agent.py b/autogen/agentchat/contrib/retrieve_user_proxy_agent.py index 7b8e4bf6fef1..28879d315632 100644 --- a/autogen/agentchat/contrib/retrieve_user_proxy_agent.py +++ b/autogen/agentchat/contrib/retrieve_user_proxy_agent.py @@ -206,7 +206,7 @@ def retrieve_docs(self, problem: str, n_results: int = 20, search_string: str = self._is_termination_msg = ( self._is_termination_msg_retrievechat if is_termination_msg is None else is_termination_msg ) - self.register_reply(Agent, RetrieveUserProxyAgent._generate_retrieve_user_reply, position=1) + self.register_reply(Agent, RetrieveUserProxyAgent._generate_retrieve_user_reply, position=2) def _is_termination_msg_retrievechat(self, message): """Check if a message is a termination message.