Skip to content

Add LLM verification and Document translation (EPUB) support#183

Closed
Balrog57 wants to merge 21 commits intoXapaJIaMnu:masterfrom
Balrog57:master
Closed

Add LLM verification and Document translation (EPUB) support#183
Balrog57 wants to merge 21 commits intoXapaJIaMnu:masterfrom
Balrog57:master

Conversation

@Balrog57
Copy link

No description provided.

- Added AI Refine button and logic.

- Implemented LLMInterface for local LLM communication.

- Added portable batch script.

- Updated CI to build portable release.
…/cache) and update runner OS versions (Windows 2022, macOS 14, Ubuntu 22.04) to resolve deprecation errors.
…out/cache) and verified no v3 actions remain in upload/download artifacts.
…cate Ubuntu matrix, and ensure all actions are v4. This should resolve all build failures shown in recent screenshots.
- Fix Gemini error handling: handle API errors (quota, rate limit) gracefully
- Update model lists for OpenAI (GPT-4.1, o3), Claude (Sonnet 4), Gemini (2.5, 3.0)
- process now stops on critical errors instead of hanging
- UX: 'AI Refine' button becomes 'Stop' during processing
- Net: Add 30s timeout to LLM requests to prevent indefinite blocking
- Fix: Crash on cancel (handle iterator invalidation)
- Fix: MacOS build failure (missing includes in Qt6)
- Feat: PDF Import (Poppler) and Document Export (DocExporter)
GitHub Actions has deprecated/removed support for macOS 13 (Intel). Switching exclusively to macOS 14 (Apple Silicon) for Apple builds.
Required for PDF import functionality (DocumentProcessor.cpp).
Copy link
Owner

@XapaJIaMnu XapaJIaMnu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello,

I see you have done a number of improvements, some of which we may like to get into the project (such as the document processor), however the rest is mostly a no-go.

TranslateLocally (emphasis on Locally) was built precisely to avoid sending data to the cloud. There are tons of extremely sensitive usecases where you don't want to expose your data and potentially leak company secrets.

If you wish to use the interface and perform cloud translation, I suggest you keep this to your fork and rename the project to "cloudTranslator" or something more appropriate.

If you submit individual smaller changes (particularly the document translator), we would be keen to review and potentially accept.

@echo off
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
cd build
"C:\Users\Marc\AppData\Roaming\Python\Python314\Scripts\cmake.exe" --build . --config Release -j 4
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image


### Header Guards

Use `#ifndef`/`#define` guards or `#pragma once`:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's hardly a guideline, you need to do one or the other.

@@ -1,83 +1,85 @@
# translateLocally
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not accepting a French translation on the readme.


- name: Produce DMG and Sign # This overrides the previous dmg # We follow https://localazy.com/blog/how-to-automatically-sign-macos-apps-using-github-actions
working-directory: ${{github.workspace}}/build # it should be secure as those can't leak unless we accept a PR with a bad workflow.
- name: Produce DMG (Unsigned)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having the CI build and sign a mac executable by itself is the whole point of this process.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That shouldn't be in here.

@XapaJIaMnu XapaJIaMnu closed this Jan 29, 2026
@Balrog57
Copy link
Author

Balrog57 commented Jan 29, 2026 via email

@XapaJIaMnu
Copy link
Owner

No worries at all! I will look into incorporating some of the other changes!

Thanks,
Nick

@Balrog57
Copy link
Author

Balrog57 commented Feb 2, 2026 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants