mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 01:10:21 +00:00
fix: restore main verification gates
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type {
|
||||
ImageGenerationProviderPlugin,
|
||||
MusicGenerationProviderPlugin,
|
||||
OpenClawPluginApi,
|
||||
VideoGenerationProviderPlugin,
|
||||
@@ -22,6 +23,11 @@ export type BundledMusicProviderEntry = {
|
||||
provider: MusicGenerationProviderPlugin;
|
||||
};
|
||||
|
||||
export type BundledImageProviderEntry = {
|
||||
pluginId: string;
|
||||
provider: ImageGenerationProviderPlugin;
|
||||
};
|
||||
|
||||
const BUNDLED_VIDEO_PROVIDER_PLUGIN_IDS = [
|
||||
"alibaba",
|
||||
"byteplus",
|
||||
@@ -46,8 +52,12 @@ function loadBundledPluginEntry(pluginId: string): BundledPluginEntryModule {
|
||||
});
|
||||
}
|
||||
|
||||
export function loadBundledProviderPlugin(pluginId: string): BundledPluginEntryModule["default"] {
|
||||
return loadBundledPluginEntry(pluginId).default;
|
||||
}
|
||||
|
||||
async function registerBundledMediaPlugin(pluginId: string) {
|
||||
const { default: plugin } = loadBundledPluginEntry(pluginId);
|
||||
const plugin = loadBundledProviderPlugin(pluginId);
|
||||
return await registerProviderPlugin({
|
||||
plugin,
|
||||
id: pluginId,
|
||||
|
||||
Reference in New Issue
Block a user