136 Commits

Author SHA1 Message Date
yihong0618
419de50cd1 fix 2023-05-23 20:03:13 +08:00
yihong0618
75f6b4b103 fix: drop deepl test 2023-05-23 19:27:41 +08:00
yihong0618
c14368157f fix: #280,#279 2023-05-23 19:20:43 +08:00
Linusp
20ad3ba7c1
feat: add temperature parameter (#278)
* add `temperature` parameter to OpenAI based translators and `Claude`

* add `temperature` parameter to book loaders

* add `--temperature` option to cli
2023-05-21 17:28:19 +08:00
Liao Weiheng
9ba0dd4b91
Improved the issue of Google Translate skipping paragraphs due to connectivity problems. (#275) 2023-05-21 09:19:48 +08:00
yihong0618
eee2b10718 fix: drop caiyun test 2023-05-15 08:35:25 +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
zstone12
b5060b8746
feat: support single_translate for txt & srt (#265)
* feat: support single_translate for txt & srt

* style: black format

* chore: change func name
2023-05-07 21:22:46 +08:00
YYLIZH
60df5f2723
fix ci (#257) 2023-04-25 09:20:01 +08:00
yihong0618
34855aada9 fix: comment it to make ci pass 2023-04-25 06:42:04 +08:00
YYLIZH
484a98b48f
feat: MakeFile easy to test local (#254) 2023-04-25 06:24:22 +08:00
yihong0618
45bfdf7907 fix: args problem 2023-04-16 22:49:30 +08:00
yihong0618
ec13713a29 doc: for srt 2023-04-16 22:34:56 +08:00
Vincent Zhang
1720c95d44
add srt support (#247)
* feat: supoort srt translate
2023-04-16 22:31:46 +08:00
hleft
a0c999a2e6
support single_translate in epub (#237)
* support no_bilingual

* use single_translate instead no_bilingual
2023-04-09 21:20:41 +08:00
yihong
237ce5280a
fix: #239 #238 (#240) 2023-04-08 17:45:14 +08:00
yihong
1b64fe0315
fix: drop chatgpt account (#234) 2023-04-03 20:02:26 +08:00
yihong
8cf4124986
feat: all print green (#228) 2023-04-02 22:00:01 +08:00
Will 保哥
cc64495d90
Add some color on the translated text output (#226) 2023-04-02 21:05:10 +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
Will 保哥
cc9e816c57
替 BBM_CHATGPTAPI_SYS_MSG 與 BBM_CHATGPTAPI_USER_MSG_TEMPLATE 加入斷行能力 (#224) 2023-04-02 17:09:22 +08:00
Will 保哥
ffb76baa21
Fixes https://github.com/yihong0618/bilingual_book_maker/issues/109 (#221) 2023-04-02 11:51:01 +08:00
Will 保哥
b41827717f
Update README-CN.md (#220) 2023-04-01 20:59:26 +08:00
yihong
6177449a48
Update README-CN.md 2023-03-30 19:29:00 +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
guavashine
74bbaf3e8a
README-CN.md里增加操作视频 (#208)
* README-CN.md里增加操作视频

README-CN.md里增加操作视频

* Update README-CN.md

---------

Co-authored-by: yihong <zouzou0208@gmail.com>
2023-03-30 19:21:30 +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
1e7c8f9ce4 fix prettify, nest child
prettify().encode() cause <table> insert newline, cause style change

--translate-tags "p,li" , If p and li nest each other, there will be a bug
2023-03-22 22:58:23 +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
陈颂贤
6f56ac7a25
feat: add target language (#193)
Cantonese
2023-03-20 00:11:08 +08:00
h
5bab5addb5 clean helper and shorter link in --accumulated_num 2023-03-19 21:30:34 +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
h
79b2d67cc9 Add more cases that don't require translation 2023-03-18 19:25:36 +08:00
h
99bcaddff6 improve mult line in --accumulated_num 2023-03-18 15:09:16 +08:00
yihong0618
ba87d0aa97 fix: #173 2023-03-17 22:59:07 +08:00
yihong0618
17d4fbcf0a chore: bump version 2023-03-17 22:44:54 +08:00
yihong
529749e055
fix: code format (#181)
* fix: code format

* fix: lint
2023-03-17 22:41:12 +08:00
h
6195ede713 fix --accumulated_num logic 2023-03-17 16:43:46 +08:00
hleft
d6e978c03d
Merge pull request #175 from yihong0618/fix
fix: Modify log location and regular expressions
2023-03-17 03:48:04 +08:00
h
413810e2bf fix: Modify log location and regular expressions 2023-03-17 03:41:45 +08:00
h
c28ae78119 Merge branch 'main' of https://github.com/yihong0618/bilingual_book_maker 2023-03-16 21:56:44 +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