mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-26 00:23:25 +00:00
langchain-community: fix unicode escaping issue with SlackToolkit (#16616)
- **Description:** fix unicode escaping issue with SlackToolkit - **Issue:** #16610
This commit is contained in:
parent
f3fdc5c5da
commit
d3d9244fee
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user