Commit graph

413 commits

Author SHA1 Message Date
bbac26b487 fix chunking to work on original HTML before preservation, not placeholder soup 2025-07-11 20:29:05 -04:00
a2a786040e remove preservations references from translateTextRaw function 2025-07-11 20:24:50 -04:00
99bdb1c6f8 clean up preservations scope in translation functions 2025-07-11 20:22:30 -04:00
7d3e7ec111 complete translateTextRaw function to properly separate raw and preserved translation 2025-07-11 20:19:39 -04:00
36828be6ae fix double HTML preservation in chunked translations by using raw translate function 2025-07-11 20:18:46 -04:00
5ddf7d36d7 fix HTML placeholder restoration in parallel chunk translation 2025-07-11 20:16:27 -04:00
eed55b922a add parallel chunk translation for massive speed improvement on large pages 2025-07-11 20:13:38 -04:00
0b02a3d75e implement intelligent chunking for large page translations based on actual token limits 2025-07-11 20:11:31 -04:00
0f51d07eb1 add translateHTML function to unify translation logic between current page and remote page translations 2025-07-11 19:47:04 -04:00
a340ea4f75 convert all relative URLs to absolute URLs in remote translations 2025-07-11 19:42:11 -04:00
46a7a8c92e fix base URL resolution for remote translations using proper URL constructor 2025-07-11 19:31:21 -04:00
d09b204f60 fix preservations variable name in translateRemoteHTML 2025-07-11 19:28:09 -04:00
3d06f28954 fix remote translation to preserve full DOM structure like page translation 2025-07-11 19:25:23 -04:00
4d53518087 fix translate modal: 3 columns layout and always open remote translations in new window 2025-07-11 19:19:38 -04:00
a89a45e177 update CORS proxy to use cors-proxy.uncloseai.com endpoint 2025-07-11 19:05:47 -04:00
2b69a4d17d update CORS proxy URL to use query parameter format 2025-07-11 17:46:23 -04:00
196527c674 use uncloseai.com CORS proxy at /api/fetch/ 2025-07-11 17:05:44 -04:00
695049ff90 use public CORS proxy for remote URL fetching 2025-07-11 17:04:03 -04:00
aa1285ba6c update remote URL fetching to use uncloseai.com CORS proxy 2025-07-11 17:01:33 -04:00
b050bbc6bf fix syntax errors: remove double commas from translation files 2025-07-11 16:50:57 -04:00
928f658328 add remote URL translation tab: fetch and translate any website just-in-time 2025-07-11 16:44:02 -04:00
2587fcf050 fix translation title: add original title + translated into language to new window 2025-07-11 16:35:49 -04:00
5477c2d6a5 fix ui.js buffer variable conflict: rename stream buffer to avoid redeclaration 2025-07-11 16:32:44 -04:00
10de872c6c fix variable conflict: rename stream buffer to avoid const redeclaration error 2025-07-11 16:31:17 -04:00
54f05b0af0 implement proportional token buffer: use 1.5x input tokens instead of fixed 2048 2025-07-11 16:29:11 -04:00
21349b9fcc fix openTranslateModal error: use window.openTranslateModal and remove duplicate import 2025-07-11 16:25:54 -04:00
a991ca4626 improve UX: close button closes settings panel first, then modal on second click 2025-07-11 16:16:48 -04:00
f304b6f634 standardize modal dropdown ID: use 'modal-model-selection' consistently 2025-07-11 15:56:44 -04:00
f939d1c782 fix model endpoint routing: properly route custom endpoint models to custom API with correct credentials 2025-07-11 15:52:08 -04:00
047d1e7856 add debug logging to track custom endpoint detection issue 2025-07-11 15:41:49 -04:00
559dd59522 fix CI pipeline: handle JSDOM dependency gracefully for modal tests 2025-07-11 15:39:08 -04:00
04e7e71e2e fix model refresh: include custom endpoint in model fetching when checkbox is checked regardless of current model routing 2025-07-11 15:36:23 -04:00
8b0fe6d2ac apply 2048 token buffer to all upstream API requests: translation and TTS now calculate available tokens properly 2025-07-11 15:25:02 -04:00
3a4952087d increase token buffer to 2048 for safer margin 2025-07-11 15:15:23 -04:00
96f8edc2e7 fix token limit calculation: use available tokens instead of model max to prevent context overflow 2025-07-11 15:04:29 -04:00
f7ddf32fff track package-lock.json for reproducible builds 2025-07-11 14:59:05 -04:00
cc03367fb1 update gitignore: add node_modules and package-lock.json 2025-07-11 14:58:29 -04:00
527fbfad1b remove jest dependencies and old test files: clean migration to custom test framework 2025-07-11 14:57:22 -04:00
133daabd77 add jest-free testing framework: comprehensive integration, modal, and simple test suites with improved error handling 2025-07-11 14:56:57 -04:00
ca9c994bfe fix model endpoint routing: use model's registered endpoint over custom when available, add page title to translate modal tab 2025-07-11 14:56:02 -04:00
2363944fa6 update src files with latest changes 2025-07-11 14:30:44 -04:00
affa6f5ca8 modified: journal.rst 2025-07-11 07:28:18 -04:00
595ac0a597 add model count feedback to refresh button: shows loading state and final count 2025-07-11 01:24:01 -04:00
cd218cc4a1 fix refresh models button: include custom API config in cache key to properly bust cache 2025-07-11 01:08:57 -04:00
02e614d733 add detailed logging for custom API model fetching to debug blog site issue 2025-07-11 01:05:35 -04:00
0af7efc863 fix model selection: add missing ID to modal model dropdown 2025-07-11 00:37:02 -04:00
525c4c315f add debug logging to getSelectedModel to trace model selection issue 2025-07-11 00:34:03 -04:00
98592efb8d Revert "fix model mismatch: validate selected model exists on custom API, fallback to default if not"
This reverts commit f4f6ae6a9c.
2025-07-11 00:32:45 -04:00
f4f6ae6a9c fix model mismatch: validate selected model exists on custom API, fallback to default if not 2025-07-11 00:31:52 -04:00
fd4cf9684b add dynamic max_tokens to all chat functions: regular chat, custom history, and intro generation 2025-07-11 00:27:28 -04:00