25 Commits

Author SHA1 Message Date
yihong0618
fcbfd37030 fix: drop chatgpt account 2023-04-03 19:59:40 +08:00
hleft
fd5782513a
support exclude or only translate filelist, exclude taglist (#216)
* support exclude_filelist

support only_filelist

* support exclude tags

* clean
2023-04-02 17:09:52 +08:00
guaguaguaxia
91ef9fa788
feat: add ChatGPT Account translate method and input options to __init… (#43)
add ChatGPT Account translate method 

---------

Co-authored-by: yihong0618 <zouzou0208@gmail.com>
2023-03-30 19:28:00 +08:00
Daniel Parizher
e7ab4c7c81
Cleanup (#174)
* Clean up some code
2023-03-30 19:22:36 +08:00
Bryan Lee
2e0720739b
feat: add Azure OpenAI service support (#213)
* feat: add Azure OpenAI service support

* fix: code format

* fix: enforce `api_base` when providing `deployment_id`

---------

Co-authored-by: yihong0618 <zouzou0208@gmail.com>
2023-03-30 19:17:27 +08:00
h
dfa1b9ada8 support --retranslate
use string for start,end

clean

autofind filename

fix bug, don't use index

clean
2023-03-22 22:58:21 +08:00
hleft
1d680a1ccf
support --translation_style (#185)
* support translation_style

* clean code
2023-03-19 21:20:30 +08:00
h
e0aef6f8af Check whether the file exists, do not report a bunch of exceptions 2023-03-19 16:08:44 +08:00
yihong
529749e055
fix: code format (#181)
* fix: code format

* fix: lint
2023-03-17 22:41:12 +08:00
hleft
e38a236be6
Cumulative translation (#148) 2023-03-16 21:25:47 +08:00
yihong
0dd61e5b3e
feat: support deepl (#162) 2023-03-13 23:13:04 +08:00
Voyageyang
839c2ce6ad
(#93) feat: add caiyun translator (#160)
* feat: add caiyun translator

* format code and update README-CN.md

* fix: add caiyun_key args

* fix: add raise

---------

Co-authored-by: yihong0618 <zouzou0208@gmail.com>
2023-03-13 20:49:23 +08:00
Hsieh Chin Fan
0a1991d8ad
Fix library of crypto for current Windows (#159)
* Fix library of crypto for current Windows

* Modify obok import statement

Only import this module when necessary

---------

Co-authored-by: Hsieh Chin Fan <pham@topo.tw>
2023-03-13 18:59:52 +08:00
zstone12
5d2c89a841
feat: batch translate txt file (#153)
* feat: batch translate txt file

* feat: batch size customed

* reslove conflicts
2023-03-12 23:03:28 +08:00
yihong
f09c2717f1
feat: pypi (#154)
* feat: pypi
2023-03-12 23:00:54 +08:00
Conan
ae3e3ba558
Unify prompt config for user and system (#151)
* fix list number in readmes

* fix list number in readmes

* unify prompt config for role user and system

* update json sample file

* update documents and add test

* update readmes
2023-03-12 14:48:24 +08:00
Conan
b1d62e8b30
added prompt template (#145)
* add prompt template

* format output for ChatGPTAPITranslator

* black format files

* fix: google txt loader failed

---------

Co-authored-by: yihong0618 <zouzou0208@gmail.com>
2023-03-11 21:51:29 +08:00
Hsieh Chin Fan
2384fb3fe2
Add options for books on kobo e-reader (#138)
Add obok.py as file selector for kobo device

---------

Co-authored-by: Hsieh Chin Fan <pham@topo.tw>
2023-03-11 21:06:49 +08:00
yihong
d95f0b3942
fix: #114 (#139) 2023-03-10 21:05:34 +08:00
yihong0618
1ef61a75c8 fix: key bug 2023-03-10 15:40:44 +08:00
InzamZ
cbe165df19
fix(#92): add a arguments to allow NavigableStrings translate (#126)
* fix(#92): add a arguments to allow NavigableStrings


---------

Co-authored-by: yihong0618 <zouzou0208@gmail.com>
2023-03-10 15:24:20 +08:00
lizhimiao
e6e4916ac4
feat: added google translate support (#131)
* added google translate support.

* format code using black.
2023-03-10 15:06:05 +08:00
hleft
b25c4ca873
support config tags to translate (#107) 2023-03-08 22:11:43 +08:00
Yurii
3472f3e673
update: refine the text of messages to the end user (#100)
* update: refine the text of messages to the end user

* update: refine message text

* fix: lint

---------

Co-authored-by: yihong0618 <zouzou0208@gmail.com>
2023-03-08 18:24:05 +08:00
yihong
cdeaaea6ce
feat: refactor and we have no type hint never (#97) 2023-03-07 23:09:26 +08:00