feat(maizone): 新增独立的maizone模型配置
为maizone功能添加了专属的模型任务配置`maizone`,使其可以与默认的回复模型`replyer_1`使用不同的模型和参数。 - 在`ModelTaskConfig`中增加了`maizone`字段。 - 将`maizone_refactored`插件的默认模型从`replyer_1`修改为`maizone`。 - 在配置文件模板中添加了`[model_task_config.maizone]`的默认配置。
This commit is contained in:
@@ -114,6 +114,9 @@ class ModelTaskConfig(ConfigBase):
|
||||
replyer_2: TaskConfig
|
||||
"""normal_chat次要回复模型配置"""
|
||||
|
||||
maizone : TaskConfig
|
||||
"""maizone专用模型"""
|
||||
|
||||
emotion: TaskConfig
|
||||
"""情绪模型配置"""
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ class MaiZoneRefactoredPlugin(BasePlugin):
|
||||
config_schema: dict = {
|
||||
"plugin": {"enable": ConfigField(type=bool, default=True, description="是否启用插件")},
|
||||
"models": {
|
||||
"text_model": ConfigField(type=str, default="replyer_1", description="生成文本的模型名称"),
|
||||
"text_model": ConfigField(type=str, default="maizone", description="生成文本的模型名称"),
|
||||
"siliconflow_apikey": ConfigField(type=str, default="", description="硅基流动AI生图API密钥"),
|
||||
},
|
||||
"send": {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[inner]
|
||||
version = "1.2.3"
|
||||
version = "1.2.4"
|
||||
|
||||
# 配置文件版本号迭代规则同bot_config.toml
|
||||
|
||||
@@ -145,6 +145,11 @@ model_list = ["siliconflow-deepseek-v3"]
|
||||
temperature = 0.3
|
||||
max_tokens = 800
|
||||
|
||||
[model_task_config.maizone] # maizone模型
|
||||
model_list = ["siliconflow-deepseek-v3"]
|
||||
temperature = 0.7
|
||||
max_tokens = 800
|
||||
|
||||
[model_task_config.vlm] # 图像识别模型
|
||||
model_list = ["qwen2.5-vl-72b"]
|
||||
max_tokens = 800
|
||||
|
||||
Reference in New Issue
Block a user