mirror of
https://github.com/yihong0618/bilingual_book_maker.git
synced 2025-06-05 19:15:34 +00:00

* feat: add caiyun translator * format code and update README-CN.md * fix: add caiyun_key args * fix: add raise --------- Co-authored-by: yihong0618 <zouzou0208@gmail.com>
13 lines
369 B
Python
13 lines
369 B
Python
from book_maker.translator.chatgptapi_translator import ChatGPTAPI
|
|
from book_maker.translator.google_translator import Google
|
|
from book_maker.translator.gpt3_translator import GPT3
|
|
from book_maker.translator.caiyun_translator import Caiyun
|
|
|
|
MODEL_DICT = {
|
|
"chatgptapi": ChatGPTAPI,
|
|
"gpt3": GPT3,
|
|
"google": Google,
|
|
"caiyun": Caiyun
|
|
# add more here
|
|
}
|