From b81fc16b7a3711c8a86478f240f4263e2174e9b3 Mon Sep 17 00:00:00 2001 From: bookfere Date: Fri, 17 May 2024 12:06:49 +0800 Subject: [PATCH] feat: Updated OpenAI models and Turkish translation. --- README.md | 2 +- engines/openai.py | 10 ++++++++-- page/_layouts/default.html | 2 +- setting.py | 2 +- translations/tr.mo | Bin 18702 -> 21131 bytes 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index edd412e..05f5d44 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ __Plugin Homepage__: [https://translator.bookfere.com](https://translator.bookfe * [MobileRead](https://www.mobileread.com/forums/showthread.php?t=353052) * [Release](https://github.com/bookfere/Ebook-Translator-Calibre-Plugin/releases) * [Contributing](CONTRIBUTING.md) -* [Donate](https://www.paypal.com/paypalme/bookfere) +* [Donate](https://www.paypal.com/paypalme/jinengge) --- diff --git a/engines/openai.py b/engines/openai.py index b1f2961..cc3834e 100644 --- a/engines/openai.py +++ b/engines/openai.py @@ -32,8 +32,14 @@ class ChatgptTranslate(Base): 'Translate the given content from to only. Do not ' 'explain any term or answer any question-like content.') models = [ - 'gpt-4-0125-preview', 'gpt-4-turbo-preview', 'gpt-4-1106-preview', - 'gpt-4', 'gpt-4-0613', 'gpt-4-32k', 'gpt-4-32k-0613', + # gpt-4o + 'gpt-4o', 'gpt-4o-2024-05-13', + # gpt-4 + 'gpt-4-turbo', 'gpt-4-turbo-2024-04-09', + 'gpt-4-turbo-preview', 'gpt-4-0125-preview', 'gpt-4-1106-preview', + 'gpt-4-vision-preview', 'gpt-4-1106-vision-preview', 'gpt-4', + 'gpt-4-0613', 'gpt-4-32k', 'gpt-4-32k-0613', + # gpt-3.5 'gpt-3.5-turbo-0125', 'gpt-3.5-turbo', 'gpt-3.5-turbo-1106', 'gpt-3.5-turbo-instruct', 'gpt-3.5-turbo-16k', 'gpt-3.5-turbo-0613', 'gpt-3.5-turbo-16k-0613'] diff --git a/page/_layouts/default.html b/page/_layouts/default.html index 93e4500..a640866 100644 --- a/page/_layouts/default.html +++ b/page/_layouts/default.html @@ -39,7 +39,7 @@

{{ page.description | default: site.description | de
-

♥ Support Open Source Software: Paypal / Patreon / More...

+

♥ Support Open Source Software: Paypal / Patreon / More...

{{ content }} diff --git a/setting.py b/setting.py index f447950..2c9e71e 100644 --- a/setting.py +++ b/setting.py @@ -491,7 +491,7 @@ def layout_engine(self): chatgpt_model_layout.addWidget(chatgpt_model_custom) chatgpt_layout.addRow(_('Model'), chatgpt_model) - self.disable_wheel_event(chatgpt_model) + self.disable_wheel_event(chatgpt_model_select) sampling_widget = QWidget() sampling_layout = QHBoxLayout(sampling_widget) diff --git a/translations/tr.mo b/translations/tr.mo index ae262844efd5c22ad496d6430d0d3e32d5fdda72..cd7f33ee6f16898fab0b17fe89050657562e0200 100644 GIT binary patch delta 7869 zcmajj33yfIoyYMv>}yzL$B+X7WsM<#LI6=rFain^q?NjGl6wNj+}s=PJwb!ot5U@( zRq-G)Zc&THQAdqI)Df+k(2BU!4RNQoYTc^hT4vDs{_c6hFixMD^Z3u_eb4gl?|W&l zx;E#^J90Ab^zCq+;W{kGn8R^v7h{s7=l9WFW4a79rXzO6PT0#j09TOD!(zM)kHANe zBFtXwhacf&`~hd;q(R20=#@yh8MB5&E;oLS?Qs+K#G7pXE-WX1FP7qW*b8S2HfA)= z$7xt^y${Ed{|Jx9enX5o2IpDVpvr#~J5aybNuoP9o=5fc4eW+{Q4RY9JK%mS#2--w z77jIL3RYWhLVf=ds)9YJaz4Nw_$5xjAFu?+Gu(O9Zl4R{naZGo1f44tAf$o(2EmM zJ(`M4v#CV&?0i&@nyrta-v1-c#^+HD?Bf_S2g^|9tV2fIY{PN*5>CV)kWWm}@JzIN z7Y>hlwgxpKPof(3iuG+|+RX>39^{OO=CmtnhzHpGaMW5UM2*ZO)JV*>&nr;nFGKB) zbjBtwM}2TJs)Bn^+h!}OAs?X@)jq2h0L#JTqSnMX)brV>3Kycvagk4qkL__CYUHj# zH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