From 74ebbdd7617b08bfc4afb4c095b0c38356387536 Mon Sep 17 00:00:00 2001 From: zhayujie Date: Mon, 19 Feb 2024 13:32:32 +0800 Subject: [PATCH] fix: client resource usage bug --- bot/linkai/link_ai_bot.py | 2 +- requirements-optional.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/linkai/link_ai_bot.py b/bot/linkai/link_ai_bot.py index d37d82a..f142d97 100644 --- a/bot/linkai/link_ai_bot.py +++ b/bot/linkai/link_ai_bot.py @@ -92,7 +92,7 @@ class LinkAIBot(Bot): "frequency_penalty": conf().get("frequency_penalty", 0.0), # [-2,2]之间,该值越大则更倾向于产生不同的内容 "presence_penalty": conf().get("presence_penalty", 0.0), # [-2,2]之间,该值越大则更倾向于产生不同的内容 "session_id": session_id, - "channel_type": conf().get("channel_type") + "channel_type": conf().get("channel_type", "wx") } try: from linkai import LinkAIClient diff --git a/requirements-optional.txt b/requirements-optional.txt index bae0e37..74f1780 100644 --- a/requirements-optional.txt +++ b/requirements-optional.txt @@ -33,7 +33,7 @@ broadscope_bailian google-generativeai # linkai -linkai +linkai>=0.0.3.5 # dingtalk dingtalk_stream