fix: remove unuse log and add plugin config in docker config

This commit is contained in:
zhayujie
2023-11-28 16:29:32 +08:00
parent da87fd9e20
commit 6e0d2f9437
2 changed files with 7 additions and 1 deletions

View File

@@ -362,7 +362,7 @@ class LinkAISessionManager(SessionManager):
try:
max_tokens = conf().get("conversation_max_tokens", 2500)
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:
logger.warning("Exception when counting tokens precisely for session: {}".format(str(e)))
return session

View File

@@ -33,6 +33,12 @@
"max_tasks": 3,
"max_tasks_per_user": 1,
"use_image_create_prefix": true
},
"summary": {
"enabled": true,
"group_enabled": true,
"max_file_size": 5000,
"type": ["FILE", "SHARING"]
}
}
}