Merge branch 'feature/streamlit_update_connections' of https://bitbucket.org/aarete/doczy.ai into feature/streamlit_update_connections
This commit is contained in:
@@ -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(",") + "}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user