claude_bot

This commit is contained in:
resphinas
2023-08-28 17:18:00 +08:00
parent 3c9b1a14e9
commit f98b43514e
13 changed files with 274 additions and 7 deletions

View File

@@ -5,7 +5,8 @@ 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-%d %H:%M:%S",
datefmt="%Y-%m-%claude_ai_bot.py%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-%d %H:%M:%S",
datefmt="%Y-%m-%claude_ai_bot.py%H:%M:%S",
)
)
log.addHandler(file_handle)