fix: prefer persisted consensus route
这个提交存在于:
父节点
7ad6f3e36a
当前提交
a5ff567272
共有 7 个文件被更改,包括 25 次插入 和 7 次删除
|
|
@ -1,3 +1,7 @@
|
|||
## 1.0.57
|
||||
|
||||
- Make the persisted plugin-data selection authoritative for the dedicated cross-analysis route.
|
||||
|
||||
## 1.0.56
|
||||
|
||||
- Ensure the dedicated consensus route overrides stale task snapshots and survives blank AstrBot runtime defaults.
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ from core.astrbot_provider_bridge import astrbot_structured_text_callable
|
|||
from core.identity import RequestContext
|
||||
from core.image_formats import detect_image_format
|
||||
from core.storage import VfsStorage
|
||||
from database.db_helper import Database, load_config_payload, load_database_settings
|
||||
from database.db_helper import Database, load_config_file_payload, load_config_payload, load_database_settings
|
||||
from database.repositories.advanced_material_repository import AdvancedMaterialRepository
|
||||
from database.repositories.job_repository import JobRepository
|
||||
from database.repositories.material_repository import MaterialRepository
|
||||
|
|
@ -1707,6 +1707,20 @@ def create_advanced_material_service() -> AdvancedMaterialService:
|
|||
database = Database(load_database_settings())
|
||||
audit = AuditService(database)
|
||||
config = load_config_payload()
|
||||
# AstrBot may expose a stale/blank runtime default for newly-added plugin
|
||||
# fields. The writable plugin-data config is the source of truth for this
|
||||
# dedicated route because the settings page persists it there.
|
||||
file_config = load_config_file_payload()
|
||||
file_assignments = file_config.get("model_assignments") if isinstance(file_config.get("model_assignments"), dict) else {}
|
||||
persisted_consensus_route = str(file_assignments.get("advanced_style_consensus") or "").strip()
|
||||
if persisted_consensus_route:
|
||||
config = {
|
||||
**config,
|
||||
"model_assignments": {
|
||||
**(config.get("model_assignments") if isinstance(config.get("model_assignments"), dict) else {}),
|
||||
"advanced_style_consensus": persisted_consensus_route,
|
||||
},
|
||||
}
|
||||
model_service = ModelProviderService(ModelProviderRepository(database))
|
||||
sync_generation_provider_from_config(model_service, config)
|
||||
sync_vision_provider_from_config(model_service, config)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
plugin:
|
||||
name: astrbot_plugin_imagestudio
|
||||
display_name: ImageStudio
|
||||
version: 1.0.56
|
||||
version: 1.0.57
|
||||
|
||||
features:
|
||||
quick_profile: true
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ from core.runtime_paths import resolve_config_path
|
|||
from database.db_helper import load_config_payload
|
||||
|
||||
|
||||
PLUGIN_VERSION = "1.0.56"
|
||||
PLUGIN_VERSION = "1.0.57"
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
|
|
|
|||
4
frontend/package-lock.json
自动生成
4
frontend/package-lock.json
自动生成
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "astrbot-plugin-imagestudio-frontend",
|
||||
"version": "1.0.56",
|
||||
"version": "1.0.57",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "astrbot-plugin-imagestudio-frontend",
|
||||
"version": "1.0.56",
|
||||
"version": "1.0.57",
|
||||
"dependencies": {
|
||||
"@vitejs/plugin-vue": "^5.2.0",
|
||||
"pinia": "^2.3.0",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "astrbot-plugin-imagestudio-frontend",
|
||||
"version": "1.0.56",
|
||||
"version": "1.0.57",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ name: astrbot_plugin_imagestudio
|
|||
display_name: ImageStudio
|
||||
desc: AstrBot >=4.25 ImageStudio role asset and image-generation workspace for Windows, Linux, macOS and Docker.
|
||||
short_desc: AstrBot 鍐呯殑瑙掕壊璧勪骇銆佸伐浣滄祦涓庡浘鐗囩敓鎴愮鐞嗗伐浣滃彴銆?
|
||||
version: 1.0.56
|
||||
version: 1.0.57
|
||||
author: YokiiroBW
|
||||
repo: "http://192.168.31.210:18085/YokiiroBW/astrbot_plugin_imagestudio"
|
||||
astrbot_version: ">=4.25.0,<5"
|
||||
|
|
|
|||
正在加载…
添加表格
在新工单中引用