UNPKG

i18n-ai-translate

Version:

AI-powered localization CLI, Node library, and GitHub Action. Translate i18next JSON, Gettext PO, Java .properties, and iOS .strings with ChatGPT, Claude, Gemini, or local Ollama models.

8 lines (7 loc) 373 B
import Engine from "../enums/engine"; import type { ChatParams, Model } from "../types"; import type ChatInterface from "./chat_interface"; import type RateLimiter from "../rate_limiter"; export default class ChatFactory { static newChat(engine: Engine, model: Model, rateLimiter: RateLimiter, apiKey?: string, host?: string, chatParams?: ChatParams): ChatInterface; }