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
commit fcfa1252a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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