anylang
Version:
A translator's kit that uses the free APIs of Google Translate, Yandex, Bing, ChatGPT, and other LLMs
17 lines (16 loc) • 420 B
TypeScript
export * from './ChatGPTLLMTranslator';
export * from './GeminiLLMTranslator';
export interface LLMFetcher {
/**
* Method for request to AI model
*/
fetch(prompt: string): Promise<string>;
/**
* Max length of string for prompt
*/
getLengthLimit(): number;
/**
* Delay between requests to comply with the requests-per-minute limit.
*/
getRequestsTimeout(): number;
}