Skip to content

Commit 74ebbdd

Browse files
committed
fix: client resource usage bug
1 parent 5346dfd commit 74ebbdd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bot/linkai/link_ai_bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def _chat(self, query, context, retry_count=0) -> Reply:
9292
"frequency_penalty": conf().get("frequency_penalty", 0.0), # [-2,2]之间,该值越大则更倾向于产生不同的内容
9393
"presence_penalty": conf().get("presence_penalty", 0.0), # [-2,2]之间,该值越大则更倾向于产生不同的内容
9494
"session_id": session_id,
95-
"channel_type": conf().get("channel_type")
95+
"channel_type": conf().get("channel_type", "wx")
9696
}
9797
try:
9898
from linkai import LinkAIClient

requirements-optional.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ broadscope_bailian
3333
google-generativeai
3434

3535
# linkai
36-
linkai
36+
linkai>=0.0.3.5
3737

3838
# dingtalk
3939
dingtalk_stream

0 commit comments

Comments
 (0)