pygpt-net 2.6.42__py3-none-any.whl → 2.6.43__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pygpt_net/CHANGELOG.txt +5 -0
- pygpt_net/__init__.py +3 -3
- pygpt_net/controller/__init__.py +2 -0
- pygpt_net/controller/launcher/launcher.py +2 -2
- pygpt_net/controller/presets/presets.py +10 -0
- pygpt_net/core/models/models.py +11 -1
- pygpt_net/core/updater/updater.py +18 -7
- pygpt_net/data/config/config.json +3 -3
- pygpt_net/data/config/models.json +4 -10
- pygpt_net/data/css/web-blocks.css +4 -0
- pygpt_net/data/css/web-chatgpt.css +4 -0
- pygpt_net/data/css/web-chatgpt_wide.css +4 -0
- pygpt_net/provider/core/config/patch.py +15 -2459
- pygpt_net/provider/core/config/patches/__init__.py +0 -0
- pygpt_net/provider/core/config/patches/patch_before_2_6_42.py +2510 -0
- pygpt_net/provider/core/model/patch.py +12 -764
- pygpt_net/provider/core/model/patches/__init__.py +0 -0
- pygpt_net/provider/core/model/patches/patch_before_2_6_42.py +813 -0
- pygpt_net/provider/core/preset/patch.py +12 -221
- pygpt_net/provider/core/preset/patches/__init__.py +0 -0
- pygpt_net/provider/core/preset/patches/patch_before_2_6_42.py +272 -0
- pygpt_net/ui/dialog/settings.py +5 -4
- {pygpt_net-2.6.42.dist-info → pygpt_net-2.6.43.dist-info}/METADATA +10 -129
- {pygpt_net-2.6.42.dist-info → pygpt_net-2.6.43.dist-info}/RECORD +27 -21
- {pygpt_net-2.6.42.dist-info → pygpt_net-2.6.43.dist-info}/LICENSE +0 -0
- {pygpt_net-2.6.42.dist-info → pygpt_net-2.6.43.dist-info}/WHEEL +0 -0
- {pygpt_net-2.6.42.dist-info → pygpt_net-2.6.43.dist-info}/entry_points.txt +0 -0
pygpt_net/CHANGELOG.txt
CHANGED
pygpt_net/__init__.py
CHANGED
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
# GitHub: https://github.com/szczyglis-dev/py-gpt #
|
|
7
7
|
# MIT License #
|
|
8
8
|
# Created By : Marcin Szczygliński #
|
|
9
|
-
# Updated Date: 2025.09.
|
|
9
|
+
# Updated Date: 2025.09.12 00:00:00 #
|
|
10
10
|
# ================================================== #
|
|
11
11
|
|
|
12
12
|
__author__ = "Marcin Szczygliński"
|
|
13
13
|
__copyright__ = "Copyright 2025, Marcin Szczygliński"
|
|
14
14
|
__credits__ = ["Marcin Szczygliński"]
|
|
15
15
|
__license__ = "MIT"
|
|
16
|
-
__version__ = "2.6.
|
|
17
|
-
__build__ = "2025-09-
|
|
16
|
+
__version__ = "2.6.43"
|
|
17
|
+
__build__ = "2025-09-12"
|
|
18
18
|
__maintainer__ = "Marcin Szczygliński"
|
|
19
19
|
__github__ = "https://github.com/szczyglis-dev/py-gpt"
|
|
20
20
|
__report__ = "https://github.com/szczyglis-dev/py-gpt/issues"
|
pygpt_net/controller/__init__.py
CHANGED
|
@@ -150,6 +150,7 @@ class Controller:
|
|
|
150
150
|
def reload(self):
|
|
151
151
|
"""Reload components"""
|
|
152
152
|
self.reloading = True # lock
|
|
153
|
+
self.presets.lock()
|
|
153
154
|
|
|
154
155
|
print(trans("status.reloading.profile.begin"))
|
|
155
156
|
|
|
@@ -185,5 +186,6 @@ class Controller:
|
|
|
185
186
|
self.theme.reload_all(prev_theme=prev_theme) # do not reload theme if no change
|
|
186
187
|
|
|
187
188
|
self.reloading = False # unlock
|
|
189
|
+
self.presets.unlock()
|
|
188
190
|
|
|
189
191
|
print(trans("status.reloading.profile.end"))
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
# GitHub: https://github.com/szczyglis-dev/py-gpt #
|
|
7
7
|
# MIT License #
|
|
8
8
|
# Created By : Marcin Szczygliński #
|
|
9
|
-
# Updated Date: 2025.
|
|
9
|
+
# Updated Date: 2025.09.11 00:00:00 #
|
|
10
10
|
# ================================================== #
|
|
11
11
|
|
|
12
12
|
from pygpt_net.core.types import (
|
|
@@ -29,7 +29,7 @@ class Launcher:
|
|
|
29
29
|
"""Post setup launcher"""
|
|
30
30
|
# check for updates
|
|
31
31
|
if self.window.core.config.get('updater.check.launch'):
|
|
32
|
-
self.window.core.updater.
|
|
32
|
+
self.window.core.updater.run_check(force=True) # async
|
|
33
33
|
|
|
34
34
|
def show_api_monit(self):
|
|
35
35
|
"""Show empty API KEY monit"""
|
|
@@ -671,9 +671,19 @@ class Presets:
|
|
|
671
671
|
|
|
672
672
|
def reload(self):
|
|
673
673
|
"""Reload presets"""
|
|
674
|
+
was_locked = self.locked
|
|
674
675
|
self.locked = True
|
|
675
676
|
self.window.core.presets.load()
|
|
676
677
|
self.refresh()
|
|
678
|
+
if not was_locked:
|
|
679
|
+
self.locked = False
|
|
680
|
+
|
|
681
|
+
def lock(self):
|
|
682
|
+
"""Lock presets change"""
|
|
683
|
+
self.locked = True
|
|
684
|
+
|
|
685
|
+
def unlock(self):
|
|
686
|
+
"""Unlock presets change"""
|
|
677
687
|
self.locked = False
|
|
678
688
|
|
|
679
689
|
def add_selected(self, id: int):
|
pygpt_net/core/models/models.py
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
# GitHub: https://github.com/szczyglis-dev/py-gpt #
|
|
7
7
|
# MIT License #
|
|
8
8
|
# Created By : Marcin Szczygliński #
|
|
9
|
-
# Updated Date: 2025.
|
|
9
|
+
# Updated Date: 2025.09.12 00:00:00 #
|
|
10
10
|
# ================================================== #
|
|
11
11
|
|
|
12
12
|
import copy
|
|
@@ -109,6 +109,16 @@ class Models:
|
|
|
109
109
|
|
|
110
110
|
return updated
|
|
111
111
|
|
|
112
|
+
def from_base(self, key: str) -> Optional[ModelItem]:
|
|
113
|
+
"""
|
|
114
|
+
Get model from base models
|
|
115
|
+
|
|
116
|
+
:param key: model name
|
|
117
|
+
:return: model config object or None
|
|
118
|
+
"""
|
|
119
|
+
items = self.get_base()
|
|
120
|
+
return items.get(key)
|
|
121
|
+
|
|
112
122
|
def get(self, key: str) -> ModelItem:
|
|
113
123
|
"""
|
|
114
124
|
Return model config
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
# GitHub: https://github.com/szczyglis-dev/py-gpt #
|
|
7
7
|
# MIT License #
|
|
8
8
|
# Created By : Marcin Szczygliński #
|
|
9
|
-
# Updated Date: 2025.
|
|
9
|
+
# Updated Date: 2025.09.11 00:00:00 #
|
|
10
10
|
# ================================================== #
|
|
11
11
|
|
|
12
12
|
import copy
|
|
@@ -453,11 +453,16 @@ class Updater:
|
|
|
453
453
|
True
|
|
454
454
|
)
|
|
455
455
|
|
|
456
|
-
def run_check(self):
|
|
457
|
-
"""
|
|
456
|
+
def run_check(self, force: bool = False):
|
|
457
|
+
"""
|
|
458
|
+
Run check for updates in background
|
|
459
|
+
|
|
460
|
+
:param force: force show version dialog
|
|
461
|
+
"""
|
|
458
462
|
worker = UpdaterWorker()
|
|
459
463
|
worker.window = self.window
|
|
460
464
|
worker.checker = self.check_silent
|
|
465
|
+
worker.force = force
|
|
461
466
|
worker.signals.version_changed.connect(self.handle_new_version)
|
|
462
467
|
self.window.threadpool.start(worker)
|
|
463
468
|
|
|
@@ -475,12 +480,13 @@ class UpdaterWorker(QRunnable):
|
|
|
475
480
|
self.last_check_time = None
|
|
476
481
|
self.window = None
|
|
477
482
|
self.checker = None
|
|
483
|
+
self.force = False
|
|
478
484
|
|
|
479
485
|
@Slot()
|
|
480
486
|
def run(self):
|
|
481
487
|
try:
|
|
482
488
|
# if background check is not enabled, abort
|
|
483
|
-
if not self.window.core.config.get("updater.check.bg"):
|
|
489
|
+
if not self.window.core.config.get("updater.check.bg") and not self.force:
|
|
484
490
|
return
|
|
485
491
|
|
|
486
492
|
# check
|
|
@@ -489,10 +495,12 @@ class UpdaterWorker(QRunnable):
|
|
|
489
495
|
if last_checked is not None and last_checked != "":
|
|
490
496
|
parsed_prev_checked = parse_version(last_checked)
|
|
491
497
|
|
|
492
|
-
|
|
498
|
+
if self.force:
|
|
499
|
+
print("Checking for updates...")
|
|
500
|
+
|
|
493
501
|
is_new, version, build, changelog, download_windows, download_linux = self.checker()
|
|
494
502
|
if is_new:
|
|
495
|
-
if parsed_prev_checked is None or parsed_prev_checked < parse_version(version):
|
|
503
|
+
if self.force or (parsed_prev_checked is None or parsed_prev_checked < parse_version(version)):
|
|
496
504
|
self.signals.version_changed.emit(
|
|
497
505
|
version,
|
|
498
506
|
build,
|
|
@@ -500,6 +508,9 @@ class UpdaterWorker(QRunnable):
|
|
|
500
508
|
download_windows,
|
|
501
509
|
download_linux,
|
|
502
510
|
)
|
|
511
|
+
return
|
|
512
|
+
if self.force:
|
|
513
|
+
print("No updates available.")
|
|
503
514
|
|
|
504
515
|
except Exception as e:
|
|
505
516
|
self.window.core.debug.log(e)
|
|
@@ -516,4 +527,4 @@ class UpdaterWorker(QRunnable):
|
|
|
516
527
|
try:
|
|
517
528
|
sig.deleteLater()
|
|
518
529
|
except RuntimeError:
|
|
519
|
-
pass
|
|
530
|
+
pass
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"__meta__": {
|
|
3
|
-
"version": "2.6.
|
|
4
|
-
"app.version": "2.6.
|
|
5
|
-
"updated_at": "2025-09-
|
|
3
|
+
"version": "2.6.43",
|
|
4
|
+
"app.version": "2.6.43",
|
|
5
|
+
"updated_at": "2025-09-12T00:00:00"
|
|
6
6
|
},
|
|
7
7
|
"access.audio.event.speech": false,
|
|
8
8
|
"access.audio.event.speech.disabled": [],
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"__meta__": {
|
|
3
|
-
"version": "2.6.
|
|
4
|
-
"app.version": "2.6.
|
|
5
|
-
"updated_at": "2025-09-
|
|
3
|
+
"version": "2.6.43",
|
|
4
|
+
"app.version": "2.6.43",
|
|
5
|
+
"updated_at": "2025-09-12T08:03:34"
|
|
6
6
|
},
|
|
7
7
|
"items": {
|
|
8
8
|
"SpeakLeash/bielik-11b-v2.3-instruct:Q4_K_M": {
|
|
@@ -2437,13 +2437,7 @@
|
|
|
2437
2437
|
"id": "grok-2-image-1212",
|
|
2438
2438
|
"name": "grok-2-image-1212",
|
|
2439
2439
|
"mode": [
|
|
2440
|
-
"
|
|
2441
|
-
"llama_index",
|
|
2442
|
-
"img",
|
|
2443
|
-
"agent_llama",
|
|
2444
|
-
"agent_openai",
|
|
2445
|
-
"agent",
|
|
2446
|
-
"expert"
|
|
2440
|
+
"img"
|
|
2447
2441
|
],
|
|
2448
2442
|
"llama_index": {
|
|
2449
2443
|
"args": [
|