83 Commits

Author SHA1 Message Date
yihong0618
130ddf4e90 Merge branch 'main' of https://github.com/yihong0618/bilingual_book_maker 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
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
Cangming H
b83ac10e88
reformat python script 2025-03-11 12:47:12 +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
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>
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
a36b488ca7
set claude temperature, update claude default model (#434) 2024-11-28 10:06:40 +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
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
2024-08-20 16:17:48 +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) 2024-08-08 18:16:58 +08:00
yihong0618
a4df3d77b3 fix: #404 2024-05-28 10:57:23 +08:00
umm
a9220ea6bf
feat: support groq translator (#399)
* feat: support Tencent TranSmart

* feat: support groq translator
2024-05-10 20:48:13 +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
70d2535f84 fix: #391
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-04-04 21:36:36 +08:00
Timothy Blumberg
2f92e3dee5
Add a model named "openai" and "--model_list" option (#392)
* Add a model named "openai" and "--model_list" option

* Remove old code

* Fix whitespace issues
2024-04-04 21:02:07 +08:00
umm
95bdd1bf6b
feat: support Tencent TranSmart (#382) 2024-02-14 19:39:59 +08:00
yihong0618
3b731efc21 fix: #380 thanks yangchen859
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-01-31 10:18:06 +08:00
yihong0618
9c53374955 fix: #379
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-01-30 22:05:28 +08:00
yihong0618
365d6628bf fix: #375
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-01-28 15:24:44 +08:00
yihong0618
cb3779f279 fix: 374
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-01-27 22:17:23 +08:00
yihong0618
5a8cbf496f fix: #372
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-01-21 22:59:44 +08:00
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
鄭棋文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
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
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
999c9c8bdb feat: change default to 16k, delete useless file 2023-08-29 14:18:02 +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
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
02c2f13737 fix: #286 2023-05-28 20:22:43 +08:00