mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:10:44 +00:00
fix(plugins): scope requested speech providers
This commit is contained in:
@@ -472,11 +472,12 @@ export function resolvePluginCapabilityProviders<K extends CapabilityProviderReg
|
||||
return activeProviders.map((entry) => entry.provider) as CapabilityProviderForKey<K>[];
|
||||
}
|
||||
}
|
||||
const requestedSpeechProviders =
|
||||
missingRequestedSpeechProviders ??
|
||||
(activeProviders.length === 0 && params.key === "speechProviders"
|
||||
? collectRequestedSpeechProviderIds(params.cfg)
|
||||
: undefined);
|
||||
let requestedSpeechProviders: Set<string> | undefined;
|
||||
if (params.key === "speechProviders") {
|
||||
requestedSpeechProviders =
|
||||
missingRequestedProviders ??
|
||||
(activeProviders.length === 0 ? collectRequestedSpeechProviderIds(params.cfg) : undefined);
|
||||
}
|
||||
const pluginIds =
|
||||
resolveRequestedCapabilityCompatPluginIds({
|
||||
key: params.key,
|
||||
|
||||
Reference in New Issue
Block a user