@imgly/plugin-ai-text-generation-web
Version:
AI text generation plugin for the CE.SDK editor
21 lines (20 loc) • 625 B
TypeScript
import type Anthropic from '@anthropic-ai/sdk';
export declare const DEFAULT_ANTHROPIC_PARAMS: {
model: string;
max_tokens: number;
temperature: number;
};
export declare const DEFAULT_ANTHROPIC_OPTIONS: {
headers: {
'x-api-key': null;
authorization: null;
};
};
declare function sendPrompt(anthropic: Anthropic, config: {
proxyUrl: string;
headers?: Record<string, string | null | undefined>;
model?: string;
maxTokens?: number;
temperature?: number;
}, prompt: string, signal?: AbortSignal): Promise<AsyncGenerator<string, void, unknown>>;
export default sendPrompt;