feat(image): complete reviewed generation delivery
Memind CI / Test, build, and release guards (pull_request) Successful in 2m47s

This commit is contained in:
john
2026-07-20 20:04:44 +08:00
parent fc3d27aae0
commit 4b15610aa8
42 changed files with 1764 additions and 97 deletions
+3 -9
View File
@@ -219,15 +219,9 @@ export function createAssetGatewayConfigService(pool, { llmProviderService = nul
const provider = normalizeProvider(plugin, payload.provider);
if (enabled && !provider) return { ok: false, message: '请选择该插件支持的 Provider' };
const usesModelCenter = !(pluginId === 'asset-generate' && provider === 'image_make');
const keyId = usesModelCenter
? String(payload.llmProviderKeyId ?? payload.keyId ?? '').trim() || null
: null;
const model = usesModelCenter
? String(payload.llmModel ?? payload.model ?? '').trim() || null
: null;
const binding = await ensureLlmBinding({ plugin, keyId, model, enabled });
if (!binding.ok) return binding;
// 大模型统一在「统一模型中心」配置,资产插件不再单独绑定 LLM。
const keyId = null;
const model = null;
const existing = await getRow(pluginId);
const now = Date.now();