anylang
Version:
A translator's kit that uses the free APIs of Google Translate, Yandex, Bing, ChatGPT, and other LLMs
14 lines (13 loc) • 553 B
TypeScript
import { LLMTranslator, LLMTranslatorRetryOptions, PromptGenerator } from '../../LLMTranslators/LLMTranslator';
export declare class DuckDuckGoLLMTranslator extends LLMTranslator {
constructor(config?: {
model?: string;
headers?: Record<string, string>;
getPrompt?: PromptGenerator;
retryOptions?: LLMTranslatorRetryOptions;
});
static readonly translatorName: string;
static isRequiredKey: () => boolean;
static isSupportedAutoFrom: () => boolean;
static getSupportedLanguages: () => string[];
}