Skip to content

Releases: machinewrapped/gpt-subtrans

v0.5.1

29 Dec 11:51
Compare
Choose a tag to compare

New instructions file format that contains the prompt to use with the instructions.

  • Updated instructions files
  • In-app editor for retry instructions
  • Retain the starting line number for subtitles in the translation
  • Don't reindex subtitles when writing the output, to avoid dropping subtitles with overlapping timecodes
  • Fix for Merge Batches after Merge Scenes

What's Changed

Support for gpt-instruct models

09 Dec 10:45
Compare
Choose a tag to compare

Added support for the gpt-instruct models, though I'm not currently recommending their usage. The quality of translation is comparable to the chat models- sometimes a little better, sometimes a little worse in my tests. However the instruct models only support the 4K token window of earlier gpt3.5 models (approx. 40 lines per batch) and have a higher per-token cost, so I think that for most users gpt-3.5-turbo-16k with a maximum batch size of about 100 lines will be more efficient and just as good.

The main purpose of the exercise was to refactor the code base to support different translation clients, which opens the door to supporting other models and platforms.

This release also contains a fix for error handling in the updated OpenAI APIs in the case of connection errors (this may solve some of the crashes people have reported), and closing the connection to the server when stopping or quitting so that it doesn't have to wait for any active requests to complete before it can exit.

What's Changed

Full Changelog: v0.4.7...v0.5.0

Fixed library incompatibilities

27 Nov 18:23
Compare
Choose a tag to compare

Updated OpenAI and PySide6 libraries to latest versions, and updated PyInstaller to get compatibility updates. Hopefully this will fix the "openai does not contain OpenAI" errors.

Please delete any existing installs or unzipping to a different folder, as PyInstaller has made changes to the file & folder structure so unzipping over an existing install will create duplicates (and a mess).

Also includes some little bug fixes:

  • Batch errors are no longer cleared by retranslation, unless the retranslation fixed the error
  • Added missing close tag in prompts

Unfortunately I am unable to get a universal package for MacOS working with the latest libraries, so this version is only built for Apple Silicon. If you want to run on an older Mac you'll need to install from source (volunteers to build releases for other architectures would be welcomed).

Full Changelog: v0.4.6...v0.4.7

Updated to latest OpenAI library

08 Nov 18:45
96b9d4e
Compare
Choose a tag to compare
Pre-release

Updated the code to be compatible with the latest version of OpenAI's Python integration library, plus various bug fixes and UI improvements.

I have been unable to get PyInstaller working with PySide6 on macos, unfortunately - I don't know what the problem is, so I might just have to wait for updates on their side. That means no MacOS version for this release, I'm afraid. If anybody can get the makedistro-mac.sh script working, please let me know!

Bug fixes

04 Nov 10:48
Compare
Choose a tag to compare
Bug fixes Pre-release
Pre-release

A minor release to collect together the latest bug fixes and library updates.

Ensure viewmodel updates happen on main thread

08 Oct 13:11
6221d1a
Compare
Choose a tag to compare

Speculative fix for reported segmentation fault errors on Mac OS - make sure all updates to the ViewModel happen on the main thread so that there is (hopefully) no risk of Qt updating the view whilst the ViewModel is being modified.

  • made some adjustments to the layout to try to get the original and translated text to line up better (Qt is unpredictable but this seems to help)
  • some fallback patterns to try to match more malformed responses from GPT

Apologies for the belated Windows version for this release, MalwareBytes was erroneously flagging packages generated with PyInstaller as malware.

GUI Optimisations

02 Sep 11:45
8b6786b
Compare
Choose a tag to compare

Optimised the abstract view model for the subtitles, reducing the time to create or update the view for a fully translated 2000 line project by over 90%. This was the primary cause of stalls on the main thread, so the GUI should be a lot more responsive now.

Fix for retry instructions

29 Aug 20:45
Compare
Choose a tag to compare

Fixes a couple of issues with retry requests:

  1. Failure to initialise retry instructions resulting in an invalid API request with None content
  2. Failure to handle the case where no lines were extracted from the original translation at all

Smarter subtitle batching

27 Aug 13:09
Compare
Choose a tag to compare

This release introduces a new subtitle batcher that tries to divide large scenes up more intelligently by taking gap length into account. This usually results in fewer, larger batches but it can sometimes have the opposite effect - hopefully they're always "better" batches though. The old batcher can be enabled in the New Project dialog to compare the results.

This release also features a better separation between global settings and project options - changing one no longer affects the other, which should lead to fewer surprises.

Additionally, instructions are no longer reloaded automatically from the instruction file for existing projects, they must be loaded or edited manually from the project GPT settings to update them.

Added icon, logo and About dialog

15 Aug 07:58
Compare
Choose a tag to compare

Nothing useful added in this release, but it's a step towards v1.0.0!