patched a bug where outputs of a regex extraction weren't getting cast back to string, causing an issue when the dict was then passed to json.dumps() (#533)

This commit is contained in:
Charles Packer
2023-11-29 12:57:05 -08:00
committed by GitHub
parent b05b09439f
commit a367ee4072

View File

@@ -62,8 +62,8 @@ def clean_and_interpret_send_message_json(json_string):
return {
"function": "send_message",
"params": {
"inner_thoughts": inner_thoughts_match,
"message": message_match,
"inner_thoughts": inner_thoughts_match.group(1),
"message": message_match.group(1),
},
}
else: