anylang
Version:
A translator's kit that uses the free APIs of Google Translate, Yandex, Bing, ChatGPT, and other LLMs
14 lines (13 loc) • 415 B
TypeScript
import { LLMFetcher } from '../../LLMTranslators';
export declare class DuckDuckGoLLMFetcher implements LLMFetcher {
private readonly options;
constructor(options?: {
model?: string;
headers?: Record<string, string>;
});
getLengthLimit: () => number;
getRequestsTimeout: () => number;
private key;
getKey(): Promise<string>;
fetch(prompt: string): Promise<string>;
}