Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
yaojin3616 committed Sep 19, 2023
1 parent ca5990c commit 098a9a7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/backend/bisheng/chat/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,8 @@ async def process_message(self,
step = []
steps = []
for s in intermediate_steps.split('\n'):
if s.startswith("Answer: {'"):
if 'result' in s:
s = 'Answer: ' + eval(s.split('Answer:')[1]).get('result')
if s.startswith("Answer: {'") and 'result' in s:
s = 'Answer: ' + eval(s.split('Answer:')[1]).get('result')
pass
step.append(s)
if not s:
Expand Down

0 comments on commit 098a9a7

Please sign in to comment.