UNPKG

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

Version:

AI text generation plugin for the CE.SDK editor

22 lines (21 loc) 691 B
import CreativeEditorSDK from '@cesdk/cesdk-js'; import { type CommonProviderConfiguration } from '@imgly/plugin-ai-generation-web'; import { TextProvider } from '../types'; type AnthropicInput = { prompt: string; temperature?: number; maxTokens?: number; blockId?: number; initialText?: string; }; type AnthropicOutput = { kind: 'text'; text: string; }; export interface AnthropicProviderConfig extends CommonProviderConfiguration<AnthropicInput, AnthropicOutput> { model?: string; } export declare function AnthropicProvider(config: AnthropicProviderConfig): (context: { cesdk: CreativeEditorSDK; }) => Promise<TextProvider<AnthropicInput>>; export {};