58 Commits

Author SHA1 Message Date
umm
95bdd1bf6b
feat: support Tencent TranSmart (#382) 2024-02-14 19:39:59 +08:00
yihong
9a20b17970
feat Gemini (#366)
* feat: gemini init

Signed-off-by: yihong0618 <zouzou0208@gmail.com>

* fix: useless code

Signed-off-by: yihong0618 <zouzou0208@gmail.com>

* feat: gemini model

---------

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-01-06 22:21:53 +08:00
yihong
2ccc918337
feat: new openai package (#358)
* feat: new openai package

Signed-off-by: yihong0618 <zouzou0208@gmail.com>

* fix: typo

Signed-off-by: yihong0618 <zouzou0208@gmail.com>

---------

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2023-12-26 17:55:26 +08:00
Vincent Young
ce67920eeb
feat: support for Custom API (#354)
feat: support for Custom API
2023-11-16 10:00:17 +08:00
Zhizhen He
b4817f2c9b
feat: add github action to check spelling (#326) 2023-08-22 19:36:53 +08:00
splintPRO
c2498286f0
Change links to deepl (#328) 2023-08-22 19:36:35 +08:00
YYLIZH
c7ee4acb14
Add formal doc page (#319)
* fix readme

* done
2023-08-15 09:41:13 +08:00
Ishaan Jaff
d8ad734888
Add support for Llama2, Palm, Cohere, Replicate Models - using litellm (#317)
update readme
2023-08-15 09:37:08 +08:00
yihong0618
8035c18223 doc: drop recommand 2023-08-07 09:01:16 +08:00
Vincent
6c0f1e3b95
Remove duplicated information (#303) 2023-06-22 10:02:47 +08:00
yihong
70e8c1e40d
feat: support deepl free (#274)
* feat: support deepl free

* fix
2023-05-14 22:48:11 +08:00
astromaddie
cd56b1e0ab
feature: GPT-4 support (#262)
* feat: add gpt4 support

* Update prompt_template_sample.json

* fix: cleaned up formatting for quotes

* feature: added context functionality (--use_context) for GPT4 model, which accumulates a running paragraph giving historical context to the current passage

* fix: propagated context_flag argument to txt_loader and srt_loader

* Updated Readme to include GPT4 parameters

* Removed debug output

* fix: lint

---------

Co-authored-by: yihong <zouzou0208@gmail.com>
2023-05-11 21:57:32 +08:00
yihong0618
c965ace98c doc: add recommend 2023-05-11 21:41:14 +08:00
yihong0618
7322d4a197 fix: ci and readme problem 2023-05-08 10:19:30 +08:00
yihong0618
8f99d0146d fix: #286 2023-05-07 21:26:50 +08:00
James Tsang
c55f816a43
feat: support claude model (#267) 2023-05-07 21:23:44 +08:00
yihong0618
ec13713a29 doc: for srt 2023-04-16 22:34:56 +08:00
yihong
1b64fe0315
fix: drop chatgpt account (#234) 2023-04-03 20:02:26 +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
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
hleft
e38a236be6
Cumulative translation (#148) 2023-03-16 21:25:47 +08:00
Panmax
a661131efb
Delete duplicate description (#172) 2023-03-16 20:54:56 +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
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
David Ye
66716632ba
Improving the READMEs (#152)
* remove the duplicate item [13,17] => [17] in README

* correct the item numbers in README

* fix typo

* add 示范用例 section title to match the English README

---------

Co-authored-by: yihong0618 <zouzou0208@gmail.com>
2023-03-12 14:51:48 +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
zstone12
aaa1ab4d7b
feat: add txt book loader (#143)
* feat: add txt book loader

* chore: add test book

* style: black

* feat: add _save_temp_book

* doc: add txt support desc
2023-03-11 14:37:25 +08:00
yihong
d95f0b3942
fix: #114 (#139) 2023-03-10 21:05:34 +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
Hsieh Chin Fan
26fdfb0f0d
Improve README (#119)
* Improve README

- Improve English wording
- Surround command, files , terms with "`"
- In codeblock, make comment starts from capitalized char
- command/parameter -> option
- Add description about --translate-tags from PR#107

* Remove Traditional Chinese

* Fix terms for Simplified Chinese

---------

Co-authored-by: Hsieh Chin Fan <pham@topo.tw>
2023-03-09 17:59:23 +08:00
Vancl
8a4806c693
Update Docker command in README.md (#99) 2023-03-07 23:59:28 +08:00
yihong0618
0bed9959f3 doc: readme example 2023-03-07 18:56:26 +08:00
Zhima-Mochi
f8edb63486
use docker (#53)
* use docker

* Update Dockerfile

* Update README.md

add example
2023-03-07 15:37:29 +08:00
yihong0618
fadc957c87 doc: more info 2023-03-07 13:09:34 +08:00
Friends A
7412abb589
docs: add disclaimer (#82) 2023-03-07 09:35:17 +08:00
兰天游
1a556333f9
feat: Change documentation on clearifying model usage (#58)
* feat: Change documentation on clearifying model usage

* feat: Change the readme in English version
2023-03-06 10:24:17 +08:00
Tongzhao9417
602ac2ca3e
更新了api_url的使用方法,增加了更为小白的示例 (#45) 2023-03-05 16:45:02 +08:00
yihong
7249540e98
feat: change api base for #42 (#44)
* feat: change api base for #42

* fix: typo
2023-03-05 15:47:37 +08:00
Ikko Eltociear Ashimine
30669abd5a
doc: fix typo in README.md (#36) 2023-03-05 07:09:19 +08:00
yihong
106616187b
doc: English README (#34) 2023-03-04 21:40:05 +08:00
guaguaguaxia
6e22cfb7df
feat:multi apikey to break through the limitation,and fix some common… (#14)
* feat:multi apikey to break through the limitation,and fix some common english mistakes
---------

Co-authored-by: yihong0618 <zouzou0208@gmail.com>
2023-03-04 18:30:59 +08:00
Brikarl
bc611a58f0
[feature] Modify README (#22)
* [feature] Support interrupt resume function

* [feature] SStreamline some code

* fix: lint

* [bugfix] fix review comments

* [feature] Modify README

---------

Co-authored-by: yihong0618 <zouzou0208@gmail.com>
2023-03-04 14:42:56 +08:00
Weirenlan
843f21a227
Feat/add target lang choices (#12)
* Feat: add multipile languages choices and a new argument language to set targett language

Co-authored-by: yihong0618 <zouzou0208@gmail.com>
2023-03-04 00:06:19 +08:00