Skip to content

Commit

Permalink
Update http_service.py
Browse files Browse the repository at this point in the history
  • Loading branch information
liu2-3zhi authored and lss233 committed Mar 3, 2024
1 parent 706cc51 commit 3cab527
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platforms/http_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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获取内容"""
Expand All @@ -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:
Expand Down

0 comments on commit 3cab527

Please sign in to comment.