machinewrapped / gpt-subtrans

Open Source project using LLMs to translate SRT subtitles
Other
310 stars 36 forks source link

Translation providers #128

Closed machinewrapped closed 4 months ago

machinewrapped commented 4 months ago

An architectural overhaul to pave the way for supporting multiple AI services as translation providers. This is a big change as I really didn't anticipate this when I started the project and several decisions that made life easier back then proved very expensive now!

Currently the only supported provider is OpenAI, but restructuring the way translation is handled and settings are stored makes it easier to add support for other services such as Gemini, Claude and OpenAI Azure - or even locally hosted models.

With such a big change there are bound to be bugs, but everything seems to be back to a working state in my tests so far, so this seems like a good idea to integrate the branch to Main as a stable base point from which to work on extending the system to actually support new providers.