videosphere
    Preparing search index...
    • Translates source text into a target language via OpenRouter chat completions.

      Parameters

      • params: {
            apiKey: string;
            model: string;
            text: string;
            sourceLanguage: string;
            targetLanguage: string;
            recentSourceContext?: string;
            signal?: AbortSignal;
        }

        Per-user API key, model, source text, languages, and optional prior context.

        • apiKey: string
        • model: string
        • text: string
        • sourceLanguage: string
        • targetLanguage: string
        • OptionalrecentSourceContext?: string

          Prior source finals for idiom/pronoun disambiguation.

        • Optionalsignal?: AbortSignal

      Returns Promise<string>

      Translated text.