UNPKG

@imgly/plugin-ai-text-generation-web

Version:

AI text generation plugin for the CE.SDK editor

18 lines (17 loc) 862 B
import type CreativeEditorSDK from '@cesdk/cesdk-js'; import { type GatewayProviderConfiguration, type GatewayInput } from '@imgly/plugin-ai-generation-web'; import { TextProvider } from '../types'; /** * Creates a text generation provider that talks to the IMG.LY gateway. * Text is streamed via SSE delta events and applied progressively. * * Text has a single capability (chat/text-in-text-out), so the default * quick actions are applied unconditionally. Customers can disable or * override individual entries via `config.supportedQuickActions`. * * @param modelId - The model identifier (e.g., 'openai/gpt-4o') * @param config - Gateway connection configuration */ export declare function GatewayProvider(modelId: string, config: GatewayProviderConfiguration): (context: { cesdk: CreativeEditorSDK; }) => Promise<TextProvider<GatewayInput>>;