18 Commits

Author SHA1 Message Date
yihong0618
bd7fd501e7 fix: #239 #238 2023-04-08 17:38:20 +08:00
Will 保哥
cc64495d90
Add some color on the translated text output (#226) 2023-04-02 21:05:10 +08:00
Will 保哥
cc9e816c57
替 BBM_CHATGPTAPI_SYS_MSG 與 BBM_CHATGPTAPI_USER_MSG_TEMPLATE 加入斷行能力 (#224) 2023-04-02 17:09:22 +08:00
Daniel Parizher
e7ab4c7c81
Cleanup (#174)
* Clean up some code
2023-03-30 19:22:36 +08:00
Bryan Lee
2e0720739b
feat: add Azure OpenAI service support (#213)
* feat: add Azure OpenAI service support

* fix: code format

* fix: enforce `api_base` when providing `deployment_id`

---------

Co-authored-by: yihong0618 <zouzou0208@gmail.com>
2023-03-30 19:17:27 +08:00
h
99bcaddff6 improve mult line in --accumulated_num 2023-03-18 15:09:16 +08:00
yihong
529749e055
fix: code format (#181)
* fix: code format

* fix: lint
2023-03-17 22:41:12 +08:00
h
413810e2bf fix: Modify log location and regular expressions 2023-03-17 03:41:45 +08:00
hleft
e38a236be6
Cumulative translation (#148) 2023-03-16 21:25:47 +08:00
yihong
f09c2717f1
feat: pypi (#154)
* feat: pypi
2023-03-12 23:00:54 +08:00
Conan
ae3e3ba558
Unify prompt config for user and system (#151)
* fix list number in readmes

* fix list number in readmes

* unify prompt config for role user and system

* update json sample file

* update documents and add test

* update readmes
2023-03-12 14:48:24 +08:00
hleft
1c3fe7e55d
fix (#149) 2023-03-11 22:40:58 +08:00
Conan
b1d62e8b30
added prompt template (#145)
* add prompt template

* format output for ChatGPTAPITranslator

* black format files

* fix: google txt loader failed

---------

Co-authored-by: yihong0618 <zouzou0208@gmail.com>
2023-03-11 21:51:29 +08:00
hleft
c0b3e0c2d5
support system meesage in environment variable (#144)
* support config tags to translate

* support system meesage in envirment
2023-03-11 20:31:16 +08:00
yihong0618
cf44a19d82 fix: print message before sleep 2023-03-10 20:54:07 +08:00
hleft
f566feabcb
refactor(translator): extract get_translation method (#112)
- Extracted get_translation method to improve code readability and maintainability
- Moved the code that handles API key and completion creation to the new method
2023-03-10 20:50:49 +08:00
Frost Ming
6c72c29943
Minor improvements for loader and translator (#103)
* Minor improvements for loader and translator

* use rotate key

* fix: typo

---------

Co-authored-by: yihong0618 <zouzou0208@gmail.com>
2023-03-08 13:27:00 +08:00
yihong
cdeaaea6ce
feat: refactor and we have no type hint never (#97) 2023-03-07 23:09:26 +08:00