212 Commits

Author SHA1 Message Date
t-boeck
79796456c3
remove gpt-4-0314 from model list (#371)
* remove gpt-4-0314 from model list

* fix: better model_list

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

---------

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: yihong0618 <zouzou0208@gmail.com>
2024-01-21 22:02:00 +08:00
Ninzore
40aaa9b090
Feat: combine multiple lines into one block, add a new option --block_size (#370)
* Feat: combine multiple lines into one block

bug:  some text is not replaced with translation

* Fix: some text are not translated

known issue:
1. sometime the original text show up
2. resume function not working

* Style: clean up code
2024-01-19 12:39:50 +08:00
yihong0618
1d7685b86f fix: bump version
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-01-10 14:31:16 +08:00
鄭棋文Steven ,Chi-Wen Cheng
ecf86a2747
Fixed Azure openai bug (#368)
fix(chatgptapi_translator): when use azure openai something wrong

1. when I use azure openai will get "api_base" not  have this arribute error. So I add         self.api_base = api_base
2. In line 84 when the message content type is None will get typeError. So I add a if else to avoid this error.

* style: format code style

* style: format code style

* fix: lint
2024-01-10 14:26:50 +08:00
yihong0618
78e7e711b9 chore: bump version
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
v0.7.0
2024-01-06 22:22:48 +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
yihong0618
e5bfee9cec fix: #359
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-01-03 22:35:17 +08:00
yihong0618
7e0f4fce54 fix: #211
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-01-03 22:20:09 +08:00
Niko
98e3dd680c
fix #357 (#362) 2024-01-02 14:56:44 +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
yihong0618
d85be65266 fix: #353
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2023-11-26 22:24:58 +08:00
Vincent Young
ce67920eeb
feat: support for Custom API (#354)
feat: support for Custom API
2023-11-16 10:00:17 +08:00
yihong0618
2d092d5513 chore: bump PyPI version
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2023-10-31 18:51:03 +08:00
yihong0618
5a7cbca75f fix: temp file wrong 2023-09-12 23:00:58 +08:00
yihong0618
999c9c8bdb feat: change default to 16k, delete useless file 2023-08-29 14:18:02 +08:00
YYLIZH
8f4767c8df
Github actions for deploy doc page (#322)
add docs github page
2023-08-22 19:37:25 +08:00
lingyiy
358f6a8616
fix: bugs for using exlude_filelists and only_filelists (#324)
* fix: bugs for using exlude_filelists and only_filelists

1. progress bars: only calculating tags in files that will be included
2. temp_file: avoid mismatch between translated texts and original texts

* simplify logic
2023-08-22 19:37:08 +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
yihong0618
b4bd0acab3 fix: txt loader format problem 2023-07-30 21:14:22 +08:00
Vincent
6c0f1e3b95
Remove duplicated information (#303) 2023-06-22 10:02:47 +08:00
bigbyto
866278b7b7
fix(dockerfile): bug fix for building Docker image (#291)
Co-authored-by: bigbyto <bigbyto@Bigbytos-iMac.local>
2023-06-02 11:01:04 +08:00
yihong0618
02c2f13737 fix: #286 2023-05-28 20:22:43 +08:00
yihong0618
d0350e0fd0 This commit change split("\n") to splitlines()
fix: #269 and help by @WeeAris

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2023-05-25 21:22:36 +08:00
yihong0618
a599ba7eee fix: #279 2023-05-24 11:13:06 +08:00
yihong
1a0bd42259
fix: #280,#279 (#281)
* fix: #280,#279
2023-05-23 20:05:17 +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