diff --git a/platforms/http_service.py b/platforms/http_service.py index 7827debd..1bcb00c2 100644 --- a/platforms/http_service.py +++ b/platforms/http_service.py @@ -138,6 +138,7 @@ async def v2_chat(): # Return the result time as request_id return bot_request.request_time + @app.route('/v2/chat/response', methods=['GET']) async def v2_chat_response(): """异步请求时,配合/v2/chat获取内容""" @@ -154,6 +155,7 @@ async def v2_chat_response(): logger.debug(f"Bot request {request_id} response -> \n{response[:100]}") return response + def clear_request_dict(): logger.debug("Watch and clean request_dic.") while True: