Skip to content

Commit

Permalink
delete log
Browse files Browse the repository at this point in the history
  • Loading branch information
珈炆 committed Dec 22, 2024
1 parent 9d9a1ef commit e2a29e7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion muagent/service/ekg_inference/intention_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ def get_intention_consult_which(self, query: str, agent=None, root_node_id: Opti
agent = agent if agent else self.agent
query_consult_which = itp.CONSULT_WHICH_PROMPT.format(query=query)
ans = agent.predict(query_consult_which)
logger.info("ans is " + str(ans))

ans = [int(x) - 1 for x in re.findall('\d+', ans) if 0 < int(x) <= len(itp.INTENTIONS_CONSULT_WHICH)]
if ans and itp.INTENTIONS_CONSULT_WHICH[ans[0]] is not itp.INTENTION_CHAT:
Expand Down

0 comments on commit e2a29e7

Please sign in to comment.