UNPKG

anylang

Version:

A translator's kit that uses the free APIs of Google Translate, Yandex, Bing, ChatGPT, and other LLMs

15 lines (14 loc) 540 B
import { LLMTranslator, LLMTranslatorRetryOptions, PromptGenerator } from '../LLMTranslator'; export declare class GeminiLLMTranslator extends LLMTranslator { static readonly translatorName: string; constructor(config: { apiKey: string; model?: string; getPrompt?: PromptGenerator; apiOrigin?: string; retryOptions?: LLMTranslatorRetryOptions; }); static isRequiredKey: () => boolean; static isSupportedAutoFrom: () => boolean; static getSupportedLanguages: () => string[]; }