fix bug when adding openai or openai-compatible stt model instance (#9006)
This commit is contained in:
parent
e1e2d0b364
commit
fcfa1252a0
4 changed files with 42 additions and 5 deletions
|
|
@ -14,7 +14,7 @@ class CotAgentOutputParser:
|
|||
) -> Generator[Union[str, AgentScratchpadUnit.Action], None, None]:
|
||||
def parse_action(json_str):
|
||||
try:
|
||||
action = json.loads(json_str)
|
||||
action = json.loads(json_str, strict=False)
|
||||
action_name = None
|
||||
action_input = None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue