8 Commits

Author SHA1 Message Date
cce
daea974d68
Pass --context_paragraph_limit option from CLI (#437) 2024-12-07 12:28:30 +08:00
yihong0618
bd46bc0c6c fix: lint
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-01-27 22:28:38 +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
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
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
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
Vincent Zhang
1720c95d44
add srt support (#247)
* feat: supoort srt translate
2023-04-16 22:31:46 +08:00
yihong
cdeaaea6ce
feat: refactor and we have no type hint never (#97) 2023-03-07 23:09:26 +08:00