mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-03-19 21:38:18 +08:00
fix: remove unuse log and add plugin config in docker config
This commit is contained in:
@@ -362,7 +362,7 @@ class LinkAISessionManager(SessionManager):
|
|||||||
try:
|
try:
|
||||||
max_tokens = conf().get("conversation_max_tokens", 2500)
|
max_tokens = conf().get("conversation_max_tokens", 2500)
|
||||||
tokens_cnt = session.discard_exceeding(max_tokens, total_tokens)
|
tokens_cnt = session.discard_exceeding(max_tokens, total_tokens)
|
||||||
logger.info(f"[LinkAI] chat history discard, before tokens={total_tokens}, now tokens={tokens_cnt}")
|
logger.debug(f"[LinkAI] chat history, before tokens={total_tokens}, now tokens={tokens_cnt}")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.warning("Exception when counting tokens precisely for session: {}".format(str(e)))
|
logger.warning("Exception when counting tokens precisely for session: {}".format(str(e)))
|
||||||
return session
|
return session
|
||||||
|
|||||||
@@ -33,6 +33,12 @@
|
|||||||
"max_tasks": 3,
|
"max_tasks": 3,
|
||||||
"max_tasks_per_user": 1,
|
"max_tasks_per_user": 1,
|
||||||
"use_image_create_prefix": true
|
"use_image_create_prefix": true
|
||||||
|
},
|
||||||
|
"summary": {
|
||||||
|
"enabled": true,
|
||||||
|
"group_enabled": true,
|
||||||
|
"max_file_size": 5000,
|
||||||
|
"type": ["FILE", "SHARING"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user