fix: changes

This commit is contained in:
SengokuCola
2025-04-04 14:17:13 +08:00
parent 00b523acc3
commit 579d6b0a1a
4 changed files with 7 additions and 6 deletions

View File

@@ -6,6 +6,7 @@
- 更改了回复引用的逻辑,从基于时间改为基于新消息 - 更改了回复引用的逻辑,从基于时间改为基于新消息
- 增加了调试信息 - 增加了调试信息
- 自动清理缓存图片 - 自动清理缓存图片
- 修复并重启了关系系统
## [test-0.6.0-snapshot-7] - 2025-4-2 ## [test-0.6.0-snapshot-7] - 2025-4-2
- 修改版本号命名test-前缀为测试版,无前缀为正式版 - 修改版本号命名test-前缀为测试版,无前缀为正式版

View File

@@ -26,7 +26,7 @@ logger = get_module_logger("config", config=config_config)
#考虑到实际上配置文件中的mai_version是不会自动更新的,所以采用硬编码 #考虑到实际上配置文件中的mai_version是不会自动更新的,所以采用硬编码
mai_version_main = "test-0.6.0" mai_version_main = "test-0.6.0"
mai_version_fix = "snapshot-8" mai_version_fix = "snapshot-9"
mai_version = f"{mai_version_main}-{mai_version_fix}" mai_version = f"{mai_version_main}-{mai_version_fix}"
def update_config(): def update_config():

View File

@@ -153,8 +153,8 @@ class LLM_request:
# 合并重试策略 # 合并重试策略
default_retry = { default_retry = {
"max_retries": 10, "max_retries": 3,
"base_wait": 15, "base_wait": 10,
"retry_codes": [429, 413, 500, 503], "retry_codes": [429, 413, 500, 503],
"abort_codes": [400, 401, 402, 403], "abort_codes": [400, 401, 402, 403],
} }
@@ -468,8 +468,8 @@ class LLM_request:
logger.critical(f"请求头: {await self._build_headers(no_key=True)} 请求体: {payload}") logger.critical(f"请求头: {await self._build_headers(no_key=True)} 请求体: {payload}")
raise RuntimeError(f"模型 {self.model_name} API请求失败: {str(e)}") from e raise RuntimeError(f"模型 {self.model_name} API请求失败: {str(e)}") from e
logger.error(f"模型 {self.model_name} 达到最大重试次数,请求仍然失败,错误: {str(e)}") logger.error(f"模型 {self.model_name} 达到最大重试次数,请求仍然失败")
raise RuntimeError(f"模型 {self.model_name} 达到最大重试次数API请求仍然失败,错误: {str(e)}") raise RuntimeError(f"模型 {self.model_name} 达到最大重试次数API请求仍然失败")
async def _transform_parameters(self, params: dict) -> dict: async def _transform_parameters(self, params: dict) -> dict:
""" """

View File

@@ -1,5 +1,5 @@
[inner] [inner]
version = "1.1.2" version = "1.1.3"
#以下是给开发人员阅读的,一般用户不需要阅读 #以下是给开发人员阅读的,一般用户不需要阅读