feat(image): complete reviewed generation delivery
Memind CI / Test, build, and release guards (pull_request) Successful in 2m47s
Memind CI / Test, build, and release guards (pull_request) Successful in 2m47s
This commit is contained in:
+3
-9
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user