fix(plugins): scope requested speech providers · openclaw/openclaw@578178f
vincentkoc
·
2026-05-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -472,11 +472,12 @@ export function resolvePluginCapabilityProviders<K extends CapabilityProviderReg
|
472 | 472 | return activeProviders.map((entry) => entry.provider) as CapabilityProviderForKey<K>[]; |
473 | 473 | } |
474 | 474 | } |
475 | | -const requestedSpeechProviders = |
476 | | -missingRequestedSpeechProviders ?? |
477 | | -(activeProviders.length === 0 && params.key === "speechProviders" |
478 | | - ? collectRequestedSpeechProviderIds(params.cfg) |
479 | | - : undefined); |
| 475 | +let requestedSpeechProviders: Set<string> | undefined; |
| 476 | +if (params.key === "speechProviders") { |
| 477 | +requestedSpeechProviders = |
| 478 | +missingRequestedProviders ?? |
| 479 | +(activeProviders.length === 0 ? collectRequestedSpeechProviderIds(params.cfg) : undefined); |
| 480 | +} |
480 | 481 | const pluginIds = |
481 | 482 | resolveRequestedCapabilityCompatPluginIds({ |
482 | 483 | key: params.key, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。