UNPKG

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

Version:

AI text generation plugin for the CE.SDK editor

18 lines (17 loc) 584 B
import CreativeEditorSDK from '@cesdk/cesdk-js'; import { Provider, type CommonProviderConfiguration } from '@imgly/plugin-ai-generation-web'; type AnthropicInput = { prompt: string; temperature?: number; maxTokens?: number; blockId?: number; initialText?: string; }; type AnthropicOutput = { kind: 'text'; text: string; }; export declare function AnthropicProvider(config: CommonProviderConfiguration<AnthropicInput, AnthropicOutput>): (context: { cesdk: CreativeEditorSDK; }) => Promise<Provider<'text', AnthropicInput, AnthropicOutput>>; export {};