Fix incorrect exception reference for json.dumps() (#24329)
Co-authored-by: Yongtao Huang <99629139+hyongtao-db@users.noreply.github.com>
This commit is contained in:
parent
8a348bea21
commit
1d09708eb7
2 changed files with 5 additions and 5 deletions
|
|
@ -197,7 +197,7 @@ class CotAgentRunner(BaseAgentRunner, ABC):
|
|||
final_answer = scratchpad.action.action_input
|
||||
else:
|
||||
final_answer = f"{scratchpad.action.action_input}"
|
||||
except json.JSONDecodeError:
|
||||
except TypeError:
|
||||
final_answer = f"{scratchpad.action.action_input}"
|
||||
else:
|
||||
function_call_state = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue