Skip to content

Commit

Permalink
feat:updated position
Browse files Browse the repository at this point in the history
  • Loading branch information
ShobhitVishnoi30 committed Dec 3, 2023
1 parent f33d088 commit 3b1fe3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autogen/agentchat/contrib/llava_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion autogen/agentchat/contrib/retrieve_user_proxy_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3b1fe3a

Please sign in to comment.