格式纠正2

This commit is contained in:
resphinas
2023-08-28 18:04:28 +08:00
parent 44cc4165d1
commit b9e3125610
6 changed files with 9 additions and 34 deletions

View File

@@ -5,10 +5,6 @@ BAIDU = "baidu"
XUNFEI = "xunfei"
CHATGPTONAZURE = "chatGPTOnAzure"
LINKAI = "linkai"
VERSION = "1.3.0"
MODEL_LIST = ["gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-4", "wenxin", "xunfei"]
CLAUDEAI = "claude"
VERSION = "1.3.0"
MODEL_LIST = ["gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-4", "wenxin", "xunfei","claude"]

View File

@@ -13,14 +13,14 @@ def _reset_logger(log):
console_handle.setFormatter(
logging.Formatter(
"[%(levelname)s][%(asctime)s][%(filename)s:%(lineno)d] - %(message)s",
datefmt="%Y-%m-%claude_ai_bot.py%H:%M:%S",
datefmt="%Y-%m-%d %H:%M:%S",
)
)
file_handle = logging.FileHandler("run.log", encoding="utf-8")
file_handle.setFormatter(
logging.Formatter(
"[%(levelname)s][%(asctime)s][%(filename)s:%(lineno)d] - %(message)s",
datefmt="%Y-%m-%claude_ai_bot.py%H:%M:%S",
datefmt="%Y-%m-%d %H:%M:%S",
)
)
log.addHandler(file_handle)