浏览代码

调整

develop
H Vs 1 天前
父节点
当前提交
2683a7ca96
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      app/endpoints/pipeline_endpoint.py

+ 2
- 2
app/endpoints/pipeline_endpoint.py 查看文件

@@ -966,12 +966,12 @@ async def handle_voice_async(request: Request,token_id,app_id, wxid,msg_data,fro
else:
# logger.info(f"回复内容包含网址,不发送语音,回复文字内容:{ai_res_content}")
# ret,ret_msg,res=await request.app.state.gewe_service.post_text_async(token_id,app_id,callback_to_user,ai_res_content)
message_lock=request.app.state.message_lock[app_id]
reply_content=ai_res_content
# 判断图片url
img_urls,reply_content=extract_and_replace_image_urls(reply_content)
if img_urls:
message_lock=request.app.state.message_lock[app_id]
#await request.app.state.gewe_service.post_text_async(token_id, app_id, callback_to_user, reply_content)
async with message_lock:
await ai_post_text_split_async_async(request, token_id, app_id, callback_to_user, reply_content)


正在加载...
取消
保存