langchain-community: fix unicode escaping issue with SlackToolkit (#16616)

- **Description:** fix unicode escaping issue with SlackToolkit
  - **Issue:**  #16610
This commit is contained in:
taimo 2024-01-30 01:38:12 +09:00 committed by GitHub
parent f3fdc5c5da
commit d3d9244fee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ class SlackGetChannel(SlackBaseTool):
and "created" in channel
and "num_members" in channel
]
return json.dumps(filtered_result)
return json.dumps(filtered_result, ensure_ascii=False)
except Exception as e:
return "Error creating conversation: {}".format(e)

View File

@ -39,6 +39,6 @@ class SlackGetMessage(SlackBaseTool):
for message in messages
if "user" in message and "text" in message and "ts" in message
]
return json.dumps(filtered_messages)
return json.dumps(filtered_messages, ensure_ascii=False)
except Exception as e:
return "Error creating conversation: {}".format(e)