release: publish ImageStudio 1.0.6
这个提交存在于:
父节点
ecd3037b9b
当前提交
d4ad94eae9
共有 12 个文件被更改,包括 88 次插入 和 54 次删除
|
|
@ -225,6 +225,20 @@ class SettingsService:
|
||||||
provider = generation.get("provider", {})
|
provider = generation.get("provider", {})
|
||||||
provider = provider if isinstance(provider, Mapping) else {}
|
provider = provider if isinstance(provider, Mapping) else {}
|
||||||
generation_provider = provider
|
generation_provider = provider
|
||||||
|
adapters = generation.get("adapters")
|
||||||
|
if isinstance(adapters, list):
|
||||||
|
for index, adapter in enumerate(adapters):
|
||||||
|
if not isinstance(adapter, Mapping) or adapter.get("enabled") is False:
|
||||||
|
continue
|
||||||
|
base_url = str(adapter.get("base_url") or "").strip()
|
||||||
|
if not base_url:
|
||||||
|
warnings.append(
|
||||||
|
{
|
||||||
|
"field": f"generation.adapters.{index}.base_url",
|
||||||
|
"message": "enabled adapter has no base URL and cannot be probed yet",
|
||||||
|
}
|
||||||
|
)
|
||||||
|
else:
|
||||||
route_name = str(provider.get("route_name") or generation.get("default_model") or "").strip()
|
route_name = str(provider.get("route_name") or generation.get("default_model") or "").strip()
|
||||||
model_id = str(provider.get("model_id") or generation.get("default_model") or "").strip()
|
model_id = str(provider.get("model_id") or generation.get("default_model") or "").strip()
|
||||||
base_url = str(provider.get("base_url") or "").strip()
|
base_url = str(provider.get("base_url") or "").strip()
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
plugin:
|
plugin:
|
||||||
name: astrbot_plugin_imagestudio
|
name: astrbot_plugin_imagestudio
|
||||||
display_name: ImageStudio
|
display_name: ImageStudio
|
||||||
version: 1.0.5
|
version: 1.0.6
|
||||||
|
|
||||||
features:
|
features:
|
||||||
quick_profile: true
|
quick_profile: true
|
||||||
|
|
|
||||||
4
frontend/package-lock.json
自动生成
4
frontend/package-lock.json
自动生成
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "astrbot-plugin-imagestudio-frontend",
|
"name": "astrbot-plugin-imagestudio-frontend",
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "astrbot-plugin-imagestudio-frontend",
|
"name": "astrbot-plugin-imagestudio-frontend",
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vitejs/plugin-vue": "^5.2.0",
|
"@vitejs/plugin-vue": "^5.2.0",
|
||||||
"pinia": "^2.3.0",
|
"pinia": "^2.3.0",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "astrbot-plugin-imagestudio-frontend",
|
"name": "astrbot-plugin-imagestudio-frontend",
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
||||||
|
|
@ -4559,10 +4559,30 @@ async function reloadProfilesPage() {
|
||||||
lastUpdated.value = new Date().toISOString()
|
lastUpdated.value = new Date().toISOString()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function withTimeout<T>(promise: Promise<T>, timeoutMs: number, message: string): Promise<T> {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
const timer = window.setTimeout(() => reject(new Error(message)), timeoutMs)
|
||||||
|
promise.then(
|
||||||
|
(value) => {
|
||||||
|
window.clearTimeout(timer)
|
||||||
|
resolve(value)
|
||||||
|
},
|
||||||
|
(error) => {
|
||||||
|
window.clearTimeout(timer)
|
||||||
|
reject(error)
|
||||||
|
},
|
||||||
|
)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
async function loadBootstrap() {
|
async function loadBootstrap() {
|
||||||
setBackendConnectionChecking()
|
setBackendConnectionChecking()
|
||||||
try {
|
try {
|
||||||
bootstrap.value = await getJson<UiBootstrap>(endpoints.uiBootstrap)
|
bootstrap.value = await withTimeout(
|
||||||
|
getJson<UiBootstrap>(endpoints.uiBootstrap),
|
||||||
|
6000,
|
||||||
|
"AstrBot 插件桥连接超时,正在自动重试。",
|
||||||
|
)
|
||||||
setBackendConnectionConnected(bootstrap.value)
|
setBackendConnectionConnected(bootstrap.value)
|
||||||
backendReconnectAttempt = 0
|
backendReconnectAttempt = 0
|
||||||
clearBackendReconnect()
|
clearBackendReconnect()
|
||||||
|
|
|
||||||
2
main.py
2
main.py
|
|
@ -98,7 +98,7 @@ load_database_settings = _database_db_helper.load_database_settings
|
||||||
|
|
||||||
PLUGIN_NAME = "astrbot_plugin_imagestudio"
|
PLUGIN_NAME = "astrbot_plugin_imagestudio"
|
||||||
PLUGIN_DESC = "AstrBot ImageStudio role asset production and image-generation workspace."
|
PLUGIN_DESC = "AstrBot ImageStudio role asset production and image-generation workspace."
|
||||||
PLUGIN_VERSION = "1.0.5"
|
PLUGIN_VERSION = "1.0.6"
|
||||||
BRIDGE_PERMISSIONS = frozenset(
|
BRIDGE_PERMISSIONS = frozenset(
|
||||||
{"can_write", "can_manage_config", "can_manage_materials", "can_retry_tasks"}
|
{"can_write", "can_manage_config", "can_manage_materials", "can_retry_tasks"}
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ name: astrbot_plugin_imagestudio
|
||||||
display_name: ImageStudio
|
display_name: ImageStudio
|
||||||
desc: AstrBot >=4.25 ImageStudio role asset and image-generation workspace for Windows, Linux, macOS and Docker.
|
desc: AstrBot >=4.25 ImageStudio role asset and image-generation workspace for Windows, Linux, macOS and Docker.
|
||||||
short_desc: AstrBot 内的角色资产、工作流与图片生成管理工作台。
|
short_desc: AstrBot 内的角色资产、工作流与图片生成管理工作台。
|
||||||
version: 1.0.5
|
version: 1.0.6
|
||||||
author: YokiiroBW
|
author: YokiiroBW
|
||||||
repo: "http://192.168.31.210:18085/YokiiroBW/astrbot_plugin_imagestudio"
|
repo: "http://192.168.31.210:18085/YokiiroBW/astrbot_plugin_imagestudio"
|
||||||
astrbot_version: ">=4.25.0,<5"
|
astrbot_version: ">=4.25.0,<5"
|
||||||
|
|
|
||||||
文件差异因一行或多行过长而隐藏
|
|
@ -4,7 +4,7 @@
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>AstrBot ImageStudio</title>
|
<title>AstrBot ImageStudio</title>
|
||||||
<script type="module" crossorigin src="./assets/index-DlW2qbdK.js"></script>
|
<script type="module" crossorigin src="./assets/index-CnWbapd1.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="./assets/index-DkCEFRMc.css">
|
<link rel="stylesheet" crossorigin href="./assets/index-DkCEFRMc.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
||||||
二进制文件未显示。
文件差异因一行或多行过长而隐藏
|
|
@ -4,7 +4,7 @@
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>AstrBot ImageStudio</title>
|
<title>AstrBot ImageStudio</title>
|
||||||
<script type="module" crossorigin src="/api/v1/plugins/extensions/astrbot_plugin_imagestudio/web/assets/index-DpL-lU9w.js"></script>
|
<script type="module" crossorigin src="/api/v1/plugins/extensions/astrbot_plugin_imagestudio/web/assets/index-CjffA5xb.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/api/v1/plugins/extensions/astrbot_plugin_imagestudio/web/assets/index-D57O7ZT7.css">
|
<link rel="stylesheet" crossorigin href="/api/v1/plugins/extensions/astrbot_plugin_imagestudio/web/assets/index-D57O7ZT7.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
||||||
正在加载…
添加表格
在新工单中引用