Skip to content

Commit

Permalink
feat: Updated OpenAI models and Turkish translation.
Browse files Browse the repository at this point in the history
  • Loading branch information
bookfere committed May 17, 2024
1 parent 96cbf62 commit b81fc16
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

---

Expand Down
10 changes: 8 additions & 2 deletions engines/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,14 @@ class ChatgptTranslate(Base):
'Translate the given content from <slang> to <tlang> 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']
Expand Down
2 changes: 1 addition & 1 deletion page/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h2 class="project-tagline">{{ page.description | default: site.description | de
</header>

<main id="content" class="main-content" role="main">
<p>&hearts; Support Open Source Software: <a href="https://paypal.me/bookfere">Paypal</a> / <a href="https://patreon.com/bookfere">Patreon</a> / <a href="https://bookfere.com/donate">More...</a></p>
<p>&hearts; Support Open Source Software: <a href="https://www.paypal.com/paypalme/jinengge">Paypal</a> / <a href="https://patreon.com/bookfere">Patreon</a> / <a href="https://bookfere.com/donate">More...</a></p>

{{ content }}

Expand Down
2 changes: 1 addition & 1 deletion setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Binary file modified translations/tr.mo
Binary file not shown.

0 comments on commit b81fc16

Please sign in to comment.