From 2bf1b6709a44278e8b341b3a0b4a139c1b94ae26 Mon Sep 17 00:00:00 2001 From: aidenlu Date: Tue, 28 Mar 2023 09:37:35 +0800 Subject: [PATCH] fix: fix #3 --- chatbot/main.py | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chatbot/main.py b/chatbot/main.py index 4eba2e9..a2f79c2 100644 --- a/chatbot/main.py +++ b/chatbot/main.py @@ -123,7 +123,7 @@ async def ask_and_reply( if chatbot: pool.release_object(chatbot) - await callback_bot(webhook_url, response, conversation_type) + await callback_bot(webhook_url, response, conversation_type, sender_userid) @app.post("/chat") @@ -185,7 +185,7 @@ async def chat(message: DingtalkAskMessage, background_tasks: BackgroundTasks): nickname, sender_userid, webhook_url, - message.conversationType, + conversation_type, conversation_id, conversation_title, ) diff --git a/pyproject.toml b/pyproject.toml index fb1f058..64904bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "chatgpt-dingtalk-bot" -version = "0.4.5" +version = "0.4.6" homepage = "https://github.com/anyidea/chatgpt-dingtalk-bot" description = "A dingtalk chatbot powered by chatGPT.." authors = ["Aiden Lu "]