fix bug when adding openai or openai-compatible stt model instance (#9006)

This commit is contained in:
zg0d233
2024-10-07 11:06:38 +08:00
committed by GitHub
parent e1e2d0b364
commit fcfa1252a0
4 changed files with 42 additions and 5 deletions

View File

@@ -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