fix: changes
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
- 更改了回复引用的逻辑,从基于时间改为基于新消息
|
||||
- 增加了调试信息
|
||||
- 自动清理缓存图片
|
||||
- 修复并重启了关系系统
|
||||
|
||||
## [test-0.6.0-snapshot-7] - 2025-4-2
|
||||
- 修改版本号命名:test-前缀为测试版,无前缀为正式版
|
||||
|
||||
@@ -26,7 +26,7 @@ logger = get_module_logger("config", config=config_config)
|
||||
|
||||
#考虑到,实际上配置文件中的mai_version是不会自动更新的,所以采用硬编码
|
||||
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}"
|
||||
|
||||
def update_config():
|
||||
|
||||
@@ -153,8 +153,8 @@ class LLM_request:
|
||||
|
||||
# 合并重试策略
|
||||
default_retry = {
|
||||
"max_retries": 10,
|
||||
"base_wait": 15,
|
||||
"max_retries": 3,
|
||||
"base_wait": 10,
|
||||
"retry_codes": [429, 413, 500, 503],
|
||||
"abort_codes": [400, 401, 402, 403],
|
||||
}
|
||||
@@ -468,8 +468,8 @@ class LLM_request:
|
||||
logger.critical(f"请求头: {await self._build_headers(no_key=True)} 请求体: {payload}")
|
||||
raise RuntimeError(f"模型 {self.model_name} API请求失败: {str(e)}") from e
|
||||
|
||||
logger.error(f"模型 {self.model_name} 达到最大重试次数,请求仍然失败,错误: {str(e)}")
|
||||
raise RuntimeError(f"模型 {self.model_name} 达到最大重试次数,API请求仍然失败,错误: {str(e)}")
|
||||
logger.error(f"模型 {self.model_name} 达到最大重试次数,请求仍然失败")
|
||||
raise RuntimeError(f"模型 {self.model_name} 达到最大重试次数,API请求仍然失败")
|
||||
|
||||
async def _transform_parameters(self, params: dict) -> dict:
|
||||
"""
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[inner]
|
||||
version = "1.1.2"
|
||||
version = "1.1.3"
|
||||
|
||||
|
||||
#以下是给开发人员阅读的,一般用户不需要阅读
|
||||
|
||||
Reference in New Issue
Block a user