mirror of
https://github.com/yihong0618/bilingual_book_maker.git
synced 2025-06-05 19:15:34 +00:00
fix: #286
This commit is contained in:
parent
c55f816a43
commit
8f99d0146d
@ -17,7 +17,7 @@ bilingual_book_maker 是一个 AI 翻译工具,使用 ChatGPT 帮助用户制
|
|||||||
|
|
||||||
- `pip install -r requirements.txt` 或 `pip install -U bbook_maker`
|
- `pip install -r requirements.txt` 或 `pip install -U bbook_maker`
|
||||||
- 使用 `--openai_key` 指定 OpenAI API key,如果有多个可以用英文逗号分隔(xxx,xxx,xxx),可以减少接口调用次数限制带来的错误。
|
- 使用 `--openai_key` 指定 OpenAI API key,如果有多个可以用英文逗号分隔(xxx,xxx,xxx),可以减少接口调用次数限制带来的错误。
|
||||||
或者,指定环境变量 `BMM_OPENAI_API_KEY` 来略过这个选项。
|
或者,指定环境变量 `BBM_OPENAI_API_KEY` 来略过这个选项。
|
||||||
- 本地放了一个 `test_books/animal_farm.epub` 给大家测试
|
- 本地放了一个 `test_books/animal_farm.epub` 给大家测试
|
||||||
- 默认用了 [GPT-3.5-turbo](https://openai.com/blog/introducing-chatgpt-and-whisper-apis) 模型,也就是 ChatGPT 正在使用的模型,用 `--model gpt3` 来使用 gpt3 模型
|
- 默认用了 [GPT-3.5-turbo](https://openai.com/blog/introducing-chatgpt-and-whisper-apis) 模型,也就是 ChatGPT 正在使用的模型,用 `--model gpt3` 来使用 gpt3 模型
|
||||||
- 可以使用 DeepL 封装的 api 进行翻译,需要付费,[DeepL Translator](https://rapidapi.com/splintPRO/api/deepl-translator) 来获得 token `--model deepl --deepl_key ${deepl_key}`
|
- 可以使用 DeepL 封装的 api 进行翻译,需要付费,[DeepL Translator](https://rapidapi.com/splintPRO/api/deepl-translator) 来获得 token `--model deepl --deepl_key ${deepl_key}`
|
||||||
|
@ -17,7 +17,7 @@ The bilingual_book_maker is an AI translation tool that uses ChatGPT to assist u
|
|||||||
|
|
||||||
- `pip install -r requirements.txt` or `pip install -U bbook_maker`(you can use)
|
- `pip install -r requirements.txt` or `pip install -U bbook_maker`(you can use)
|
||||||
- Use `--openai_key` option to specify OpenAI API key. If you have multiple keys, separate them by commas (xxx,xxx,xxx) to reduce errors caused by API call limits.
|
- Use `--openai_key` option to specify OpenAI API key. If you have multiple keys, separate them by commas (xxx,xxx,xxx) to reduce errors caused by API call limits.
|
||||||
Or, just set environment variable `BMM_OPENAI_API_KEY` instead.
|
Or, just set environment variable `BBM_OPENAI_API_KEY` instead.
|
||||||
- A sample book, `test_books/animal_farm.epub`, is provided for testing purposes.
|
- A sample book, `test_books/animal_farm.epub`, is provided for testing purposes.
|
||||||
- The default underlying model is [GPT-3.5-turbo](https://openai.com/blog/introducing-chatgpt-and-whisper-apis), which is used by ChatGPT currently. Use `--model gpt3` to change the underlying model to `GPT3`
|
- The default underlying model is [GPT-3.5-turbo](https://openai.com/blog/introducing-chatgpt-and-whisper-apis), which is used by ChatGPT currently. Use `--model gpt3` to change the underlying model to `GPT3`
|
||||||
- Support DeepL model [DeepL Translator](https://rapidapi.com/splintPRO/api/deepl-translator) need pay to get the token use `--model deepl --deepl_key ${deepl_key}`
|
- Support DeepL model [DeepL Translator](https://rapidapi.com/splintPRO/api/deepl-translator) need pay to get the token use `--model deepl --deepl_key ${deepl_key}`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user