Skip to content

Commit

Permalink
[Add] Fix invoking Assistant API (#2751)
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Zhu <[email protected]>
  • Loading branch information
krishnashed and ekzhu authored May 22, 2024
1 parent 732450d commit 918244e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autogen/agentchat/contrib/gpt_assistant_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def __init__(
# lazily create threads
self._openai_threads = {}
self._unread_index = defaultdict(int)
self.register_reply(Agent, GPTAssistantAgent._invoke_assistant, position=2)
self.register_reply([Agent, None], GPTAssistantAgent._invoke_assistant, position=2)

def _invoke_assistant(
self,
Expand Down

0 comments on commit 918244e

Please sign in to comment.