mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-22 04:16:07 +00:00
feat: 对接收到的消息文字进行strip (#174)
This commit is contained in:
@@ -60,6 +60,8 @@ def process_message(launcher_type: str, launcher_id: int, text_message: str, mes
|
|||||||
|
|
||||||
pkg.openai.session.get_session(session_name).acquire_response_lock()
|
pkg.openai.session.get_session(session_name).acquire_response_lock()
|
||||||
|
|
||||||
|
text_message = text_message.strip()
|
||||||
|
|
||||||
# 处理消息
|
# 处理消息
|
||||||
try:
|
try:
|
||||||
if session_name in processing:
|
if session_name in processing:
|
||||||
|
|||||||
Reference in New Issue
Block a user