{"repo":"Cerlancism/chatgpt-subtitle-translator","free":true,"listed":false,"github":"https://github.com/Cerlancism/chatgpt-subtitle-translator","clone":"git clone https://github.com/Cerlancism/chatgpt-subtitle-translator.git","description":"Efficient translation tool based on ChatGPT or any OpenAI compatible LLM chat completion API","language":"JavaScript","stars":389,"topics":["chatgpt","cli","gui","openai","srt","srt-subtitles","subtitle","web","llm","translator"],"license":"MIT","category":"ai-agents","readme_excerpt":"ChatGPT API SRT Subtitle Translator Large language models (LLMs), such as ChatGPT, have demonstrated their capabilities as a robust translator, capable of handling common natural languages with contextual understanding, as well as unconventional forms of writing like word scrambling. However, it may not always produce a deterministic output or adhere to line-to-line correlation, potentially disrupting the timing of subtitles, even when instructed to follow precise instructions and with the model temperature parameter set to 0 . This utility uses the OpenAI ChatGPT API to translate text, with a specific focus on line-based translation, especially for SRT subtitles. The translator optimizes token usage by removing SRT overhead and grouping text into batches, resulting in arbitrary length translations without excessive token consumption while ensuring a one-to-one match between line input and output. Upgrading from v2? See the v2 - v3 Migration Guide for breaking changes. Web Interface: Features - Web User Interface (Web UI) and Command Line Interface (CLI) - Supports Structured Output: for more concise results, enabled by default in the Web UI and CLI - Supports Prompt Caching: by including the full context of translated data, the system instruction and translation context are packaged to work well with prompt caching, controlled with -c, --context (CLI only) - Supports any OpenAI API compatible providers such as running Ollama locally - Line-based batching: avoids token limit ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Cerlancism","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Cerlancism/chatgpt-subtitle-translator/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}