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

* 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>
20 lines
666 B
Python
20 lines
666 B
Python
from book_maker.translator.caiyun_translator import Caiyun
|
|
from book_maker.translator.chatgptapi_translator import ChatGPTAPI
|
|
from book_maker.translator.deepl_translator import DeepL
|
|
from book_maker.translator.deepl_free_translator import DeepLFree
|
|
from book_maker.translator.google_translator import Google
|
|
from book_maker.translator.claude_translator import Claude
|
|
from book_maker.translator.custom_api_translator import CustomAPI
|
|
|
|
MODEL_DICT = {
|
|
"chatgptapi": ChatGPTAPI,
|
|
"google": Google,
|
|
"caiyun": Caiyun,
|
|
"deepl": DeepL,
|
|
"deeplfree": DeepLFree,
|
|
"gpt4": ChatGPTAPI,
|
|
"claude": Claude,
|
|
"customapi": CustomAPI
|
|
# add more here
|
|
}
|