libre-webui 0.15.1 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -8
- package/backend/dist/db.d.ts.map +1 -1
- package/backend/dist/db.js +63 -0
- package/backend/dist/db.js.map +1 -1
- package/backend/dist/index.d.ts.map +1 -1
- package/backend/dist/index.js +4 -4
- package/backend/dist/index.js.map +1 -1
- package/backend/dist/routes/chat.d.ts.map +1 -1
- package/backend/dist/routes/chat.js +93 -10
- package/backend/dist/routes/chat.js.map +1 -1
- package/backend/dist/routes/imageGen.d.ts.map +1 -1
- package/backend/dist/routes/imageGen.js +52 -29
- package/backend/dist/routes/imageGen.js.map +1 -1
- package/backend/dist/routes/plugins.d.ts.map +1 -1
- package/backend/dist/routes/plugins.js +226 -42
- package/backend/dist/routes/plugins.js.map +1 -1
- package/backend/dist/routes/preferences.d.ts.map +1 -1
- package/backend/dist/routes/preferences.js +5 -4
- package/backend/dist/routes/preferences.js.map +1 -1
- package/backend/dist/routes/tts.js +2 -2
- package/backend/dist/routes/tts.js.map +1 -1
- package/backend/dist/routes/work.d.ts.map +1 -1
- package/backend/dist/routes/work.js +2 -1
- package/backend/dist/routes/work.js.map +1 -1
- package/backend/dist/services/assistantCompletionService.d.ts +2 -1
- package/backend/dist/services/assistantCompletionService.d.ts.map +1 -1
- package/backend/dist/services/assistantCompletionService.js +3 -1
- package/backend/dist/services/assistantCompletionService.js.map +1 -1
- package/backend/dist/services/chatGenerationService.d.ts +5 -3
- package/backend/dist/services/chatGenerationService.d.ts.map +1 -1
- package/backend/dist/services/chatGenerationService.js +18 -6
- package/backend/dist/services/chatGenerationService.js.map +1 -1
- package/backend/dist/services/chatRequestService.d.ts +6 -4
- package/backend/dist/services/chatRequestService.d.ts.map +1 -1
- package/backend/dist/services/chatRequestService.js +10 -2
- package/backend/dist/services/chatRequestService.js.map +1 -1
- package/backend/dist/services/chatService.d.ts +2 -2
- package/backend/dist/services/chatService.d.ts.map +1 -1
- package/backend/dist/services/chatService.js +29 -17
- package/backend/dist/services/chatService.js.map +1 -1
- package/backend/dist/services/embeddingService.js +1 -1
- package/backend/dist/services/embeddingService.js.map +1 -1
- package/backend/dist/services/pluginActivationService.d.ts +11 -0
- package/backend/dist/services/pluginActivationService.d.ts.map +1 -0
- package/backend/dist/services/pluginActivationService.js +163 -0
- package/backend/dist/services/pluginActivationService.js.map +1 -0
- package/backend/dist/services/pluginCapabilityRegistryService.d.ts +1 -1
- package/backend/dist/services/pluginCapabilityRegistryService.d.ts.map +1 -1
- package/backend/dist/services/pluginCapabilityRegistryService.js +1 -1
- package/backend/dist/services/pluginCapabilityRegistryService.js.map +1 -1
- package/backend/dist/services/pluginCredentialsService.d.ts +16 -8
- package/backend/dist/services/pluginCredentialsService.d.ts.map +1 -1
- package/backend/dist/services/pluginCredentialsService.js +47 -14
- package/backend/dist/services/pluginCredentialsService.js.map +1 -1
- package/backend/dist/services/pluginEmbeddingService.d.ts +2 -2
- package/backend/dist/services/pluginEmbeddingService.d.ts.map +1 -1
- package/backend/dist/services/pluginEmbeddingService.js +33 -13
- package/backend/dist/services/pluginEmbeddingService.js.map +1 -1
- package/backend/dist/services/pluginImageGenerationService.d.ts +11 -7
- package/backend/dist/services/pluginImageGenerationService.d.ts.map +1 -1
- package/backend/dist/services/pluginImageGenerationService.js +265 -81
- package/backend/dist/services/pluginImageGenerationService.js.map +1 -1
- package/backend/dist/services/pluginService.d.ts +97 -26
- package/backend/dist/services/pluginService.d.ts.map +1 -1
- package/backend/dist/services/pluginService.js +797 -178
- package/backend/dist/services/pluginService.js.map +1 -1
- package/backend/dist/services/pluginTTSService.d.ts +4 -4
- package/backend/dist/services/pluginTTSService.d.ts.map +1 -1
- package/backend/dist/services/pluginTTSService.js +24 -28
- package/backend/dist/services/pluginTTSService.js.map +1 -1
- package/backend/dist/services/pluginVariablesService.d.ts +6 -1
- package/backend/dist/services/pluginVariablesService.d.ts.map +1 -1
- package/backend/dist/services/pluginVariablesService.js +59 -1
- package/backend/dist/services/pluginVariablesService.js.map +1 -1
- package/backend/dist/services/preferencesService.d.ts +2 -2
- package/backend/dist/services/preferencesService.d.ts.map +1 -1
- package/backend/dist/services/preferencesService.js +78 -10
- package/backend/dist/services/preferencesService.js.map +1 -1
- package/backend/dist/services/titleGenerationService.d.ts +6 -4
- package/backend/dist/services/titleGenerationService.d.ts.map +1 -1
- package/backend/dist/services/titleGenerationService.js +9 -5
- package/backend/dist/services/titleGenerationService.js.map +1 -1
- package/backend/dist/services/workAgentService.d.ts +5 -2
- package/backend/dist/services/workAgentService.d.ts.map +1 -1
- package/backend/dist/services/workAgentService.js +315 -44
- package/backend/dist/services/workAgentService.js.map +1 -1
- package/backend/dist/services/workModelProviderService.d.ts +6 -3
- package/backend/dist/services/workModelProviderService.d.ts.map +1 -1
- package/backend/dist/services/workModelProviderService.js +243 -19
- package/backend/dist/services/workModelProviderService.js.map +1 -1
- package/backend/dist/services/workRuntimeService.d.ts +18 -1
- package/backend/dist/services/workRuntimeService.d.ts.map +1 -1
- package/backend/dist/services/workRuntimeService.js +62 -11
- package/backend/dist/services/workRuntimeService.js.map +1 -1
- package/backend/dist/services/workTaskService.d.ts +2 -0
- package/backend/dist/services/workTaskService.d.ts.map +1 -1
- package/backend/dist/services/workTaskService.js +89 -14
- package/backend/dist/services/workTaskService.js.map +1 -1
- package/backend/dist/storage.d.ts.map +1 -1
- package/backend/dist/storage.js +9 -6
- package/backend/dist/storage.js.map +1 -1
- package/backend/dist/storageMappers.d.ts +3 -0
- package/backend/dist/storageMappers.d.ts.map +1 -1
- package/backend/dist/storageMappers.js +3 -0
- package/backend/dist/storageMappers.js.map +1 -1
- package/backend/dist/types/index.d.ts +54 -1
- package/backend/dist/types/index.d.ts.map +1 -1
- package/backend/dist/types/index.js.map +1 -1
- package/backend/dist/types/work.d.ts +1 -1
- package/backend/dist/types/work.d.ts.map +1 -1
- package/backend/dist/utils/chatContext.d.ts +13 -1
- package/backend/dist/utils/chatContext.d.ts.map +1 -1
- package/backend/dist/utils/chatContext.js +52 -0
- package/backend/dist/utils/chatContext.js.map +1 -1
- package/backend/dist/utils/chatProviderSelection.d.ts +15 -0
- package/backend/dist/utils/chatProviderSelection.d.ts.map +1 -0
- package/backend/dist/utils/chatProviderSelection.js +59 -0
- package/backend/dist/utils/chatProviderSelection.js.map +1 -0
- package/backend/dist/utils/imageGenerationValidation.d.ts +3 -0
- package/backend/dist/utils/imageGenerationValidation.d.ts.map +1 -0
- package/backend/dist/utils/imageGenerationValidation.js +55 -0
- package/backend/dist/utils/imageGenerationValidation.js.map +1 -0
- package/backend/dist/utils/openAIResponsesAdapter.d.ts +88 -0
- package/backend/dist/utils/openAIResponsesAdapter.d.ts.map +1 -0
- package/backend/dist/utils/openAIResponsesAdapter.js +521 -0
- package/backend/dist/utils/openAIResponsesAdapter.js.map +1 -0
- package/backend/dist/utils/pluginChatAdapter.d.ts +7 -4
- package/backend/dist/utils/pluginChatAdapter.d.ts.map +1 -1
- package/backend/dist/utils/pluginChatAdapter.js +33 -5
- package/backend/dist/utils/pluginChatAdapter.js.map +1 -1
- package/backend/dist/utils/pluginChatContext.d.ts.map +1 -1
- package/backend/dist/utils/pluginChatContext.js +5 -1
- package/backend/dist/utils/pluginChatContext.js.map +1 -1
- package/backend/dist/utils/pluginConnectionVariables.d.ts +6 -0
- package/backend/dist/utils/pluginConnectionVariables.d.ts.map +1 -0
- package/backend/dist/utils/pluginConnectionVariables.js +52 -0
- package/backend/dist/utils/pluginConnectionVariables.js.map +1 -0
- package/backend/dist/utils/pluginDefinitionTrust.d.ts +9 -0
- package/backend/dist/utils/pluginDefinitionTrust.d.ts.map +1 -0
- package/backend/dist/utils/pluginDefinitionTrust.js +71 -0
- package/backend/dist/utils/pluginDefinitionTrust.js.map +1 -0
- package/backend/dist/utils/pluginStreamAdapter.d.ts +3 -0
- package/backend/dist/utils/pluginStreamAdapter.d.ts.map +1 -1
- package/backend/dist/utils/pluginStreamAdapter.js +410 -0
- package/backend/dist/utils/pluginStreamAdapter.js.map +1 -1
- package/backend/dist/utils/pluginStreaming.d.ts +7 -1
- package/backend/dist/utils/pluginStreaming.d.ts.map +1 -1
- package/backend/dist/utils/pluginStreaming.js +12 -1
- package/backend/dist/utils/pluginStreaming.js.map +1 -1
- package/backend/dist/utils/pluginValidation.d.ts +20 -2
- package/backend/dist/utils/pluginValidation.d.ts.map +1 -1
- package/backend/dist/utils/pluginValidation.js +187 -17
- package/backend/dist/utils/pluginValidation.js.map +1 -1
- package/backend/dist/utils/pluginVariableValidation.d.ts +7 -0
- package/backend/dist/utils/pluginVariableValidation.d.ts.map +1 -1
- package/backend/dist/utils/pluginVariableValidation.js +79 -4
- package/backend/dist/utils/pluginVariableValidation.js.map +1 -1
- package/backend/dist/websocketServer.d.ts.map +1 -1
- package/backend/dist/websocketServer.js +16 -3
- package/backend/dist/websocketServer.js.map +1 -1
- package/backend/package.json +1 -1
- package/frontend/dist/assets/index-BVgyQN3z.js +5 -0
- package/frontend/dist/assets/index-Dme2Ozol.css +1 -0
- package/frontend/dist/index.html +3 -3
- package/frontend/dist/js/{ArtifactContainer-BHSBrlQB.js → ArtifactContainer-CbMAYwvr.js} +1 -1
- package/frontend/dist/js/{ArtifactDemoPage-BHGJmJAT.js → ArtifactDemoPage-CWDhGWrz.js} +1 -1
- package/frontend/dist/js/ArtifactSlideOutPanel-CzUpDM59.js +1 -0
- package/frontend/dist/js/ChatPage-D0fdzy7a.js +16 -0
- package/frontend/dist/js/{FirstTimeSetup-BYWAVAdE.js → FirstTimeSetup-CfnOmy9w.js} +1 -1
- package/frontend/dist/js/GalleryPage-CMkCur9v.js +1 -0
- package/frontend/dist/js/LibreClawPage-CHEfny1k.js +1 -0
- package/frontend/dist/js/ModelSelector-COnlNsVM.js +1 -0
- package/frontend/dist/js/ModelsPage-nxheiYJp.js +2 -0
- package/frontend/dist/js/PersonasPage-C2pqDsWA.js +13 -0
- package/frontend/dist/js/{RichMessageContent-BdU5vXz9.js → RichMessageContent-Cz9y-bgl.js} +1 -1
- package/frontend/dist/js/SettingsModal-B6Se68Hd.js +1 -0
- package/frontend/dist/js/UserManagementPage-DQeL-Twp.js +1 -0
- package/frontend/dist/js/WorkPage-AcZMp8OB.js +2 -0
- package/frontend/dist/js/api-Fi-lJlfu.js +19 -0
- package/frontend/dist/js/{estree-Bu_-Wi6O.js → estree-BRklD62a.js} +1 -1
- package/frontend/dist/js/{html-Ca764Rus.js → html-BgGIAGmn.js} +1 -1
- package/frontend/dist/js/{markdown-DaiQGPEs.js → markdown-CM2nBJJi.js} +1 -1
- package/frontend/dist/js/{standalone-DWWnsbIr.js → standalone-CUBo-NGt.js} +1 -1
- package/frontend/dist/js/{typescript-CatjJeHm.js → typescript-Dcy9qxSB.js} +1 -1
- package/frontend/dist/js/useBaseQuery-CFTidwqz.js +1 -0
- package/frontend/dist/js/useQuery-UsSBfWzs.js +1 -0
- package/package.json +2 -2
- package/plugins/github.json +1 -2
- package/plugins/huggingface.json +30 -30
- package/plugins/openai.json +53 -22
- package/frontend/dist/assets/index-DkShhNBf.js +0 -5
- package/frontend/dist/assets/index-bdSWBsAM.css +0 -1
- package/frontend/dist/js/ArtifactSlideOutPanel-s8vcE5Ea.js +0 -1
- package/frontend/dist/js/ChatPage-B6Hm_pdu.js +0 -16
- package/frontend/dist/js/GalleryPage-CH4f65q8.js +0 -1
- package/frontend/dist/js/LibreClawPage-CcH7M3mJ.js +0 -1
- package/frontend/dist/js/ModelSelector-T1KZtIde.js +0 -1
- package/frontend/dist/js/ModelsPage-C1bM_Yoc.js +0 -2
- package/frontend/dist/js/PersonasPage-T_PrhnPG.js +0 -13
- package/frontend/dist/js/SettingsModal-BVj-D1L4.js +0 -1
- package/frontend/dist/js/UserManagementPage-Pix71oRW.js +0 -1
- package/frontend/dist/js/WorkPage-DdOVGyj_.js +0 -2
- package/frontend/dist/js/api-Do6u0tMM.js +0 -19
- package/frontend/dist/js/useBaseQuery-CVNuhuID.js +0 -1
- package/frontend/dist/js/useQuery-CYhC_da4.js +0 -1
|
@@ -1,19 +1,48 @@
|
|
|
1
1
|
import { EmbeddingModel, OllamaEmbeddingsResponse, Plugin, PluginStatus, PluginResponse, ChatMessage, GenerationOptions, TTSConfig, ImageGenConfig, ImageGenResponse, PluginType } from '../types/index.js';
|
|
2
2
|
import { type PluginStreamChunk } from '../utils/pluginStreamAdapter.js';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Why a refresh did or did not change the catalog. Reported to the caller so a
|
|
5
|
+
* silent fallback to the bundled catalog is never presented as a live update.
|
|
6
|
+
*/
|
|
7
|
+
export type PluginModelDiscoveryOutcome = 'updated' | 'unchanged' | 'missing_credentials' | 'unavailable';
|
|
8
|
+
export interface PluginModelDiscoveryResult {
|
|
9
|
+
models: string[];
|
|
10
|
+
outcome: PluginModelDiscoveryOutcome;
|
|
11
|
+
reason?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class PluginService {
|
|
4
14
|
private pluginsDir;
|
|
5
15
|
private bundledPluginsDir;
|
|
6
16
|
private legacyPluginsDir;
|
|
7
17
|
private pluginReadDirs;
|
|
8
|
-
private
|
|
18
|
+
private discoveredModelsCache;
|
|
19
|
+
private discoveredModelsUpdatedAt;
|
|
20
|
+
private discoveryAttemptedAt;
|
|
21
|
+
private inflightDiscovery;
|
|
9
22
|
private embeddingService;
|
|
10
23
|
private ttsService;
|
|
11
24
|
private imageGenerationService;
|
|
12
25
|
private capabilityRegistryService;
|
|
26
|
+
private bundledRoutingProjectionCache;
|
|
13
27
|
constructor();
|
|
28
|
+
private discoveredModelsCacheKey;
|
|
29
|
+
private getDiscoveredModels;
|
|
30
|
+
private storeDiscoveredModels;
|
|
31
|
+
clearDiscoveredModels(pluginId: string, userId?: string): void;
|
|
32
|
+
private applyDiscoveredModels;
|
|
14
33
|
private ensurePluginsDirectory;
|
|
15
|
-
private
|
|
16
|
-
private
|
|
34
|
+
private bundledPluginPath;
|
|
35
|
+
private isAnchoredBundledDefinition;
|
|
36
|
+
private isPluginDefinitionApproved;
|
|
37
|
+
private approvePluginDefinition;
|
|
38
|
+
private removePluginDefinitionApproval;
|
|
39
|
+
private revokePluginDefinitionConsent;
|
|
40
|
+
private canMigrateLegacyActivation;
|
|
41
|
+
private resolveEffectivePluginFilePath;
|
|
42
|
+
private getBundledRoutingProjection;
|
|
43
|
+
private usesTrustedBundledRouting;
|
|
44
|
+
private isPluginActive;
|
|
45
|
+
private canUseStoredConnectionOverrides;
|
|
17
46
|
/**
|
|
18
47
|
* Get API key for a plugin from database (per-user) or environment variable (fallback)
|
|
19
48
|
* @param plugin The plugin to get the API key for
|
|
@@ -21,41 +50,81 @@ declare class PluginService {
|
|
|
21
50
|
* @returns The API key or null if not found
|
|
22
51
|
*/
|
|
23
52
|
getApiKey(plugin: Plugin, userId?: string): string | null;
|
|
53
|
+
/**
|
|
54
|
+
* Bind a user credential to the exact routing/authentication contract in
|
|
55
|
+
* effect when they save it. Generation controls are intentionally excluded.
|
|
56
|
+
*/
|
|
57
|
+
getCredentialRoutingAuthFingerprint(plugin: Plugin, userId?: string): string;
|
|
24
58
|
/**
|
|
25
59
|
* Get resolved variable values for a plugin (decrypted, typed).
|
|
26
60
|
*/
|
|
27
61
|
getPluginVariables(plugin: Plugin, userId?: string): Record<string, string | number | boolean>;
|
|
28
62
|
/**
|
|
29
|
-
* Validate an endpoint
|
|
30
|
-
* Returns the URL string if valid
|
|
63
|
+
* Validate an endpoint override as an absolute HTTP or HTTPS URL.
|
|
64
|
+
* Returns the URL string if valid and throws for an invalid explicit value.
|
|
31
65
|
*/
|
|
32
66
|
private validateEndpointUrl;
|
|
33
67
|
/**
|
|
34
|
-
*
|
|
68
|
+
* Resolve and validate routing before credential lookup. The credential
|
|
69
|
+
* service's custom-route policy is integrated separately; keeping this
|
|
70
|
+
* boundary ordered prevents a rejected override from ever selecting an
|
|
71
|
+
* environment credential.
|
|
72
|
+
*/
|
|
73
|
+
private resolveOperationEndpoint;
|
|
74
|
+
/**
|
|
75
|
+
* Attempt to auto-discover available models from a plugin's full API endpoint.
|
|
35
76
|
* Resolves the provider's model-list endpoint and updates the plugin's model_map.
|
|
36
|
-
* Falls back
|
|
77
|
+
* Falls back to the existing model_map if the endpoint is unavailable; callers
|
|
78
|
+
* that need to tell a real update from a fallback use discoverModelsResult.
|
|
37
79
|
*/
|
|
38
80
|
discoverModels(pluginId: string, userId?: string): Promise<string[]>;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
81
|
+
/**
|
|
82
|
+
* Model discovery with the outcome attached, so a caller can report whether
|
|
83
|
+
* the provider was actually reached instead of assuming the returned catalog
|
|
84
|
+
* is fresh.
|
|
85
|
+
*/
|
|
86
|
+
discoverModelsResult(pluginId: string, userId?: string): Promise<PluginModelDiscoveryResult>;
|
|
87
|
+
/**
|
|
88
|
+
* Whether a plugin's catalog should be re-fetched. Missing catalogs are due
|
|
89
|
+
* immediately; stored ones age out after the TTL. Both cases are gated by a
|
|
90
|
+
* per-plugin backoff so a failing provider is not probed on every request.
|
|
91
|
+
*/
|
|
92
|
+
private isModelDiscoveryDue;
|
|
93
|
+
/**
|
|
94
|
+
* Re-discover models for every active completion plugin whose catalog is
|
|
95
|
+
* missing or stale. Bounded by a deadline so a slow provider cannot stall the
|
|
96
|
+
* plugin-list response; refreshes that outrun it still persist and surface on
|
|
97
|
+
* the next request.
|
|
98
|
+
*/
|
|
99
|
+
refreshStaleModels(userId?: string): Promise<void>;
|
|
100
|
+
/**
|
|
101
|
+
* Say why no key was usable. An environment key is deliberately ignored for a
|
|
102
|
+
* provider whose definition was installed into the writable plugins directory,
|
|
103
|
+
* because that file can be edited to point the credential somewhere else — a
|
|
104
|
+
* silent "no API key" hides that distinction from whoever set the variable.
|
|
105
|
+
*/
|
|
106
|
+
private describeMissingCredential;
|
|
107
|
+
private runModelDiscovery;
|
|
108
|
+
getAllPlugins(userId?: string): Plugin[];
|
|
109
|
+
getPlugin(id: string, userId?: string): Plugin | null;
|
|
110
|
+
installPlugin(pluginData: Plugin, approvedByUserId: string): Plugin;
|
|
42
111
|
deletePlugin(id: string): boolean;
|
|
43
|
-
activatePlugin(id: string): boolean
|
|
44
|
-
deactivatePlugin(id?: string): boolean;
|
|
45
|
-
getActivePluginForModel(model: string, userId?: string): Plugin | null;
|
|
46
|
-
getActivePlugins(): Plugin[];
|
|
47
|
-
getActivePlugin(): Plugin | null;
|
|
48
|
-
getPluginStatus(): PluginStatus[];
|
|
49
|
-
executePluginRequest(model: string, messages: ChatMessage[], options?: GenerationOptions, userId?: string): Promise<PluginResponse>;
|
|
112
|
+
activatePlugin(id: string, userId?: string): Promise<boolean>;
|
|
113
|
+
deactivatePlugin(id?: string, userId?: string): boolean;
|
|
114
|
+
getActivePluginForModel(model: string, userId?: string, pluginId?: string): Plugin | null;
|
|
115
|
+
getActivePlugins(userId?: string): Plugin[];
|
|
116
|
+
getActivePlugin(userId?: string): Plugin | null;
|
|
117
|
+
getPluginStatus(userId?: string): PluginStatus[];
|
|
118
|
+
executePluginRequest(model: string, messages: ChatMessage[], options?: GenerationOptions, userId?: string, pluginId?: string): Promise<PluginResponse>;
|
|
50
119
|
/**
|
|
51
120
|
* Execute a streaming chat request through the active plugin.
|
|
52
121
|
* Returns an async generator that yields SSE delta content strings.
|
|
53
122
|
* Also collects tool_calls from the stream.
|
|
54
123
|
*/
|
|
55
|
-
executePluginStreamRequest(model: string, messages: ChatMessage[], options?: GenerationOptions, userId?: string): AsyncGenerator<PluginStreamChunk, void, unknown>;
|
|
124
|
+
executePluginStreamRequest(model: string, messages: ChatMessage[], options?: GenerationOptions, userId?: string, pluginId?: string): AsyncGenerator<PluginStreamChunk, void, unknown>;
|
|
56
125
|
private validatePlugin;
|
|
57
|
-
exportPlugin(id: string): Plugin | null;
|
|
58
|
-
importPlugin(pluginData: unknown): Plugin;
|
|
126
|
+
exportPlugin(id: string, userId?: string): Plugin | null;
|
|
127
|
+
importPlugin(pluginData: unknown, approvedByUserId: string): Plugin;
|
|
59
128
|
getPluginForTTS(model: string, pluginId?: string, userId?: string): Plugin | null;
|
|
60
129
|
getPluginForEmbedding(model: string, pluginId?: string, userId?: string): Plugin | null;
|
|
61
130
|
getAvailableEmbeddingModels(userId?: string): Array<{
|
|
@@ -79,21 +148,23 @@ declare class PluginService {
|
|
|
79
148
|
pluginId?: string;
|
|
80
149
|
userId?: string;
|
|
81
150
|
}): Promise<Buffer>;
|
|
82
|
-
getTTSConfig(pluginId: string): TTSConfig | null;
|
|
83
|
-
getPluginForImageGen(model: string): Plugin | null;
|
|
84
|
-
getAvailableImageGenModels(): {
|
|
151
|
+
getTTSConfig(pluginId: string, userId?: string): TTSConfig | null;
|
|
152
|
+
getPluginForImageGen(model: string, pluginId: string, userId?: string): Plugin | null;
|
|
153
|
+
getAvailableImageGenModels(userId?: string): {
|
|
85
154
|
model: string;
|
|
86
155
|
plugin: string;
|
|
87
156
|
config?: ImageGenConfig;
|
|
88
157
|
}[];
|
|
89
|
-
executeImageGenRequest(model: string, prompt: string, options
|
|
158
|
+
executeImageGenRequest(model: string, prompt: string, options: {
|
|
90
159
|
size?: string;
|
|
91
160
|
quality?: string;
|
|
92
161
|
style?: string;
|
|
93
162
|
n?: number;
|
|
94
163
|
response_format?: 'url' | 'b64_json';
|
|
164
|
+
pluginId: string;
|
|
165
|
+
userId?: string;
|
|
95
166
|
}): Promise<ImageGenResponse>;
|
|
96
|
-
getImageGenConfig(pluginId: string): ImageGenConfig | null;
|
|
167
|
+
getImageGenConfig(pluginId: string, userId?: string): ImageGenConfig | null;
|
|
97
168
|
getPluginsByCapability(capabilityType: PluginType, userId?: string): Plugin[];
|
|
98
169
|
}
|
|
99
170
|
declare const _default: PluginService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pluginService.d.ts","sourceRoot":"","sources":["../../src/services/pluginService.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pluginService.d.ts","sourceRoot":"","sources":["../../src/services/pluginService.ts"],"names":[],"mappings":"AAsBA,OAAO,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