226 Commits

Author SHA1 Message Date
yihong0618
130ddf4e90 Merge branch 'main' of https://github.com/yihong0618/bilingual_book_maker v1.0.0 2025-04-22 17:41:12 +08:00
yihong0618
f4ac49651c fix: black it
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2025-04-22 17:41:00 +08:00
yihong
433e208925
Merge pull request #456 from leslieo2/main
fix: Fix translation paragraph count mismatch by explicitly instructing LLM about paragraph requirements
2025-04-22 17:36:19 +08:00
yihong0618
2b40f0872a fix: add gitignore
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2025-04-22 17:36:05 +08:00
yihong
4ac29a7d63
Merge pull request #458 from yihong0618/hy/add_gemini_model
fix: drop .pdm-python add new gemini model
2025-04-22 17:17:40 +08:00
yihong0618
e45326f7a8 fix: drop .pdm-python add new gemini model
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2025-04-22 17:17:16 +08:00
leslie
c780f7c516 fix:Fix translation paragraph count mismatch by explicitly instructing LLM about paragraph requirements 2025-04-21 16:11:33 +08:00
leslie
cc4f4c4dae fix:Fix translation paragraph count mismatch by explicitly instructing LLM about paragraph requirements 2025-04-21 15:05:21 +08:00
leslie
57ca4da847 fix:Fix translation paragraph count mismatch by explicitly instructing LLM about paragraph requirements 2025-04-20 16:48:11 +08:00
leslie
09589c626d fix:Fix translation paragraph count mismatch by explicitly instructing LLM about paragraph requirements 2025-04-19 23:28:02 +08:00
leslie
750ecd7d93 fix:Fix translation paragraph count mismatch by explicitly instructing LLM about paragraph requirements 2025-04-19 22:57:47 +08:00
leslie
70a1962804 fix:Fix translation paragraph count mismatch by explicitly instructing LLM about paragraph requirements 2025-04-19 22:18:47 +08:00
leslie
83303d1dd8 fix:Fix translation paragraph count mismatch by explicitly instructing LLM about paragraph requirements 2025-04-19 20:31:22 +08:00
leslie
b0dbed8826 fix:Fix translation paragraph count mismatch by explicitly instructing LLM about paragraph requirements 2025-04-19 20:29:41 +08:00
leslie
6685b23993 fix:Fix translation paragraph count mismatch by explicitly instructing LLM about paragraph requirements 2025-04-19 19:59:32 +08:00
yihong
a1f0185043
Merge pull request #449 from lytt925/main
fix(docker): update Dockerfile to copy only requirements.txt
2025-03-12 11:04:47 +08:00
Yen-Ting Li
68f21744f5 fix(docker): update Dockerfile to copy only requirements.txt 2025-03-12 10:54:00 +08:00
yihong
81f9b5280b
Merge pull request #448 from cangming/support_openai_o_series_model
feat(model): support openai o series model
2025-03-11 18:02:54 +08:00
Cangming H
bf0a0b8ad5
upgrade ci python version to 3.10 2025-03-11 13:02:46 +08:00
Cangming H
b83ac10e88
reformat python script 2025-03-11 12:47:12 +08:00
Cangming H
cf992aef70
Fix github CI failed due to actions/upload-artifact deprecated 2025-03-11 12:19:16 +08:00
cangming
8bfd1b146d
feat(model): support openai o series model (o1-preview, o1, o1-mini, o3-mini) 2025-03-09 23:04:46 +08:00
Thibaut
e6b0de14db
Add promptdown support (markdown user, system, developer messages (#446)
* Add promptdown support (markdown user, system, developer messages

* Revert extra changes to cli

* Add to gitignore
2025-03-05 20:58:10 +08:00
Deftera
b7674d734d
Use dynamic language in Google translator (#445) 2025-03-02 13:38:57 +08:00
yihong0618
f0927404fe fix: lint
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
v0.9.9
2024-12-22 19:00:40 +08:00
ZHU PEIYAN
4e7cbb5e32
feat(translator): 优化 Gemini 翻译模板(吴恩达三步翻译法)并支持新模型 (#439)
* feat(translator): 优化 Gemini 翻译模板并支持新模型

更新翻译提示模板以提供更专业的中文翻译输出,主要变更包括:
- 添加新的 Gemini 2.0 flash 实验模型支持
- 修改翻译提示模板,采用三步翻译流程提升翻译质量
- 增加标签提取功能,只返回最终优化后的翻译内容
- 移除对 {language} 参数的强制要求检查

优化后的翻译流程包含初次翻译、反思改进和最终润色三个步骤,
显著提升翻译结果的准确性和可读性。

* support md file type

---------

Co-authored-by: zhonghua.zhu <zhonghua.zhu@riveretech.com>
2024-12-22 18:59:42 +08:00
cce
b80f1ba785
Add context and system message support for Claude (#438)
* option to select claude model

* add context_flag and context_paragraph_limit option for claude

* reformat with black

* remove nonexistent model
2024-12-08 07:06:38 +08:00
cce
daea974d68
Pass --context_paragraph_limit option from CLI (#437) 2024-12-07 12:28:30 +08:00
cce
a36b488ca7
set claude temperature, update claude default model (#434) 2024-11-28 10:06:40 +08:00
umm
b42a33d9a8
Update README (#433) 2024-11-09 12:46:22 +08:00
umm
a82255a8d7
Update README (#432)
* feat: support Tencent TranSmart

* feat: support groq translator

* update README
2024-11-09 09:08:12 +08:00
anenin
e962a08f35
fix: Fix parameter mismatch in EPUBBookLoaderHelper.translate_with_ba… (#429)
* fix: Fix parameter mismatch in EPUBBookLoaderHelper.translate_with_backoff

- Fix TypeError when calling translate_with_backoff with multiple arguments
- Add proper parameter handling in the decorated method
- Add jitter=None to prevent extra parameters from backoff decorator
- Improve code readability and error handling

* style: format code with black

---------

Co-authored-by: wenping <angenpn@gmail.com>
v0.9.8
2024-11-06 18:09:09 +08:00
Xie Yanbo
546fbd8e37
Avoid crash if not provide book_name (#431) 2024-11-06 17:57:38 +08:00
Xie Yanbo
78fc7985d5
support xAI (#430) 2024-11-06 17:56:59 +08:00
risin42
9261d92e20
Gemini Enhancements (#428)
* chore: Bump google-generativeai and related dependencies

* feat: add support for --temperature option to gemini

* feat: add support for --interval option to gemini

* feat: add support for --model_list option to gemini

* feat: add support for --prompt option to gemini

* modify: model settings

* feat: add support for --use_context option to gemini

* feat: add support for rotate_key to gemini

* feat: add exponential backoff to gemini

* Update README.md

* fix: typos and apply black formatting

* Update make_test_ebook.yaml

* fix: cli

* fix: interval option implementation

* fix: interval for geminipro

* fix: recreate convo after rotating key
v0.9.7
2024-10-21 13:42:33 +08:00
mkXultra
6912206cb1
support: gpt4o (#425)
* support: gpt4o

* fix: remove wrong code

* fix: fix ci error
2024-08-24 19:20:15 +08:00
mkXultra
9e4e7b59c7
supprt openai batch api (#423)
* feat: support batch api
v0.9.6
2024-08-20 16:17:48 +08:00
mkXultra
f155e2075f
update readme (#421) 2024-08-15 12:47:47 +08:00
mkXultra
825381606a
feat: enable context flag and add context paragraph limit on chatgpt … (#420) 2024-08-14 22:07:31 +08:00
mkXultra
32f4eb3566
feat: support model gpt4o-mini (#419) v0.9.5 2024-08-08 18:16:58 +08:00
b1tg
dd3da508a6
add document for ollama & fix document format (#411) 2024-07-24 11:47:24 +08:00
yihong0618
a4df3d77b3 fix: #404 v0.9.4 2024-05-28 10:57:23 +08:00
umm
a9220ea6bf
feat: support groq translator (#399)
* feat: support Tencent TranSmart

* feat: support groq translator
v0.9.3
2024-05-10 20:48:13 +08:00
yihong0618
307898f5cd fix: pyproject
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
v0.9.2
2024-05-02 08:33:16 +08:00
yihong0618
e7ae81eeeb fix v0.9.1 2024-05-02 08:30:48 +08:00
yihong0618
0ea97b8746 fix: versions, #398
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
v0.9.0
2024-05-02 08:27:35 +08:00
b1tg
1ca0e78558
add ollama support (#396)
* add ollama support

* fix format

---------

Co-authored-by: b1tg <b1tg@users.noreply.github.com>
2024-04-22 16:16:33 +08:00
yihong0618
205c482fd8 chore: bump version
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-04-04 21:38:24 +08:00
yihong0618
70d2535f84 fix: #391
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-04-04 21:36:36 +08:00
yihong0618
85112cc0fc fix: bump version
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-04-04 21:17:32 +08:00