Merge branch 'feature/streamlit_update_connections' of https://bitbucket.org/aarete/doczy.ai into feature/streamlit_update_connections

This commit is contained in:
AARETE\agupta
2024-06-17 15:30:57 -05:00
@@ -271,6 +271,8 @@ def json_parsing(response_text, context):
if len(response_text.split("}", 1)) > 1:
if response_text.rsplit("}", 1)[0].strip()[-1] == '"':
response_text = response_text.rsplit("}", 1)[0] + "}"
elif response_text.rsplit("}", 1)[0].strip()[-1] == '}':
response_text = response_text.rsplit("}", 1)[0]
else:
response_text = response_text.rstrip(",") + "}"