jinysun commited on
Commit
eadd814
·
verified ·
1 Parent(s): 9ac74e6

Update rmrkl/output_parser.py

Browse files
Files changed (1) hide show
  1. rmrkl/output_parser.py +1 -1
rmrkl/output_parser.py CHANGED
@@ -31,7 +31,7 @@ class ChatZeroShotOutputParser(AgentOutputParser):
31
  )
32
  match = re.search(regex, text, re.DOTALL)
33
  if not match:
34
- raise OutputParserException(f"Could not parse LLM output: `{text}`")
35
  action = match.group(1).strip()
36
  action_input = match.group(2)
37
  return AgentAction(action, action_input.strip(" ").strip('"'), text.strip())
 
31
  )
32
  match = re.search(regex, text, re.DOTALL)
33
  if not match:
34
+ raise OutputParserException(f"{text}")
35
  action = match.group(1).strip()
36
  action_input = match.group(2)
37
  return AgentAction(action, action_input.strip(" ").strip('"'), text.strip())