pygpt-net 2.7.3__py3-none-any.whl → 2.7.5__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 +15 -0
- pygpt_net/__init__.py +3 -3
- pygpt_net/app.py +382 -350
- pygpt_net/app_core.py +4 -2
- pygpt_net/controller/__init__.py +5 -1
- pygpt_net/controller/assistant/assistant.py +1 -4
- pygpt_net/controller/assistant/batch.py +5 -504
- pygpt_net/controller/assistant/editor.py +5 -5
- pygpt_net/controller/assistant/files.py +16 -16
- pygpt_net/controller/chat/attachment.py +5 -1
- pygpt_net/controller/chat/handler/google_stream.py +307 -1
- pygpt_net/controller/chat/handler/worker.py +8 -1
- pygpt_net/controller/chat/image.py +15 -3
- pygpt_net/controller/dialogs/confirm.py +73 -101
- pygpt_net/controller/files/files.py +3 -1
- pygpt_net/controller/lang/mapping.py +9 -9
- pygpt_net/controller/layout/layout.py +2 -2
- pygpt_net/controller/painter/capture.py +50 -1
- pygpt_net/controller/presets/presets.py +2 -1
- pygpt_net/controller/remote_store/__init__.py +12 -0
- pygpt_net/{provider/core/assistant_file/db_sqlite → controller/remote_store/google}/__init__.py +2 -2
- pygpt_net/controller/remote_store/google/batch.py +402 -0
- pygpt_net/controller/remote_store/google/store.py +615 -0
- pygpt_net/controller/remote_store/openai/__init__.py +12 -0
- pygpt_net/controller/remote_store/openai/batch.py +524 -0
- pygpt_net/controller/{assistant → remote_store/openai}/store.py +63 -60
- pygpt_net/controller/remote_store/remote_store.py +35 -0
- pygpt_net/controller/theme/nodes.py +2 -1
- pygpt_net/controller/ui/mode.py +5 -1
- pygpt_net/controller/ui/ui.py +36 -2
- pygpt_net/core/assistants/assistants.py +3 -15
- pygpt_net/core/db/database.py +5 -3
- pygpt_net/core/filesystem/url.py +4 -1
- pygpt_net/core/locale/placeholder.py +35 -0
- pygpt_net/core/remote_store/__init__.py +12 -0
- pygpt_net/core/remote_store/google/__init__.py +11 -0
- pygpt_net/core/remote_store/google/files.py +224 -0
- pygpt_net/core/remote_store/google/store.py +248 -0
- pygpt_net/core/remote_store/openai/__init__.py +11 -0
- pygpt_net/core/{assistants → remote_store/openai}/files.py +26 -19
- pygpt_net/core/{assistants → remote_store/openai}/store.py +32 -15
- pygpt_net/core/remote_store/remote_store.py +24 -0
- pygpt_net/core/render/web/helpers.py +5 -0
- pygpt_net/data/config/config.json +8 -5
- pygpt_net/data/config/models.json +77 -3
- pygpt_net/data/config/settings.json +45 -14
- pygpt_net/data/css/web-blocks.css +3 -0
- pygpt_net/data/css/web-chatgpt.css +3 -0
- pygpt_net/data/locale/locale.de.ini +43 -41
- pygpt_net/data/locale/locale.en.ini +56 -44
- pygpt_net/data/locale/locale.es.ini +43 -41
- pygpt_net/data/locale/locale.fr.ini +43 -41
- pygpt_net/data/locale/locale.it.ini +43 -41
- pygpt_net/data/locale/locale.pl.ini +43 -41
- pygpt_net/data/locale/locale.uk.ini +43 -41
- pygpt_net/data/locale/locale.zh.ini +43 -41
- pygpt_net/data/locale/plugin.cmd_history.de.ini +1 -1
- pygpt_net/data/locale/plugin.cmd_history.en.ini +1 -1
- pygpt_net/data/locale/plugin.cmd_history.es.ini +1 -1
- pygpt_net/data/locale/plugin.cmd_history.fr.ini +1 -1
- pygpt_net/data/locale/plugin.cmd_history.it.ini +1 -1
- pygpt_net/data/locale/plugin.cmd_history.pl.ini +1 -1
- pygpt_net/data/locale/plugin.cmd_history.uk.ini +1 -1
- pygpt_net/data/locale/plugin.cmd_history.zh.ini +1 -1
- pygpt_net/data/locale/plugin.cmd_mouse_control.en.ini +14 -0
- pygpt_net/data/locale/plugin.cmd_web.de.ini +1 -1
- pygpt_net/data/locale/plugin.cmd_web.en.ini +1 -1
- pygpt_net/data/locale/plugin.cmd_web.es.ini +1 -1
- pygpt_net/data/locale/plugin.cmd_web.fr.ini +1 -1
- pygpt_net/data/locale/plugin.cmd_web.it.ini +1 -1
- pygpt_net/data/locale/plugin.cmd_web.pl.ini +1 -1
- pygpt_net/data/locale/plugin.cmd_web.uk.ini +1 -1
- pygpt_net/data/locale/plugin.cmd_web.zh.ini +1 -1
- pygpt_net/data/locale/plugin.idx_llama_index.de.ini +2 -2
- pygpt_net/data/locale/plugin.idx_llama_index.en.ini +2 -2
- pygpt_net/data/locale/plugin.idx_llama_index.es.ini +2 -2
- pygpt_net/data/locale/plugin.idx_llama_index.fr.ini +2 -2
- pygpt_net/data/locale/plugin.idx_llama_index.it.ini +2 -2
- pygpt_net/data/locale/plugin.idx_llama_index.pl.ini +2 -2
- pygpt_net/data/locale/plugin.idx_llama_index.uk.ini +2 -2
- pygpt_net/data/locale/plugin.idx_llama_index.zh.ini +2 -2
- pygpt_net/item/assistant.py +1 -211
- pygpt_net/item/ctx.py +3 -1
- pygpt_net/item/store.py +238 -0
- pygpt_net/launcher.py +115 -55
- pygpt_net/migrations/Version20260102190000.py +35 -0
- pygpt_net/migrations/__init__.py +3 -1
- pygpt_net/plugin/cmd_mouse_control/config.py +470 -1
- pygpt_net/plugin/cmd_mouse_control/plugin.py +488 -22
- pygpt_net/plugin/cmd_mouse_control/worker.py +464 -87
- pygpt_net/plugin/cmd_mouse_control/worker_sandbox.py +729 -0
- pygpt_net/plugin/idx_llama_index/config.py +2 -2
- pygpt_net/preload.py +243 -0
- pygpt_net/provider/api/google/__init__.py +16 -54
- pygpt_net/provider/api/google/chat.py +546 -129
- pygpt_net/provider/api/google/computer.py +190 -0
- pygpt_net/provider/api/google/image.py +74 -6
- pygpt_net/provider/api/google/realtime/realtime.py +2 -2
- pygpt_net/provider/api/google/remote_tools.py +93 -0
- pygpt_net/provider/api/google/store.py +546 -0
- pygpt_net/provider/api/google/video.py +9 -4
- pygpt_net/provider/api/google/worker/__init__.py +0 -0
- pygpt_net/provider/api/google/worker/importer.py +392 -0
- pygpt_net/provider/api/openai/computer.py +10 -1
- pygpt_net/provider/api/openai/image.py +42 -19
- pygpt_net/provider/api/openai/store.py +6 -6
- pygpt_net/provider/api/openai/video.py +27 -2
- pygpt_net/provider/api/openai/worker/importer.py +24 -24
- pygpt_net/provider/api/x_ai/image.py +25 -2
- pygpt_net/provider/core/config/patch.py +23 -1
- pygpt_net/provider/core/config/patches/patch_before_2_6_42.py +3 -3
- pygpt_net/provider/core/model/patch.py +17 -3
- pygpt_net/provider/core/preset/json_file.py +13 -7
- pygpt_net/provider/core/{assistant_file → remote_file}/__init__.py +1 -1
- pygpt_net/provider/core/{assistant_file → remote_file}/base.py +9 -9
- pygpt_net/provider/core/remote_file/db_sqlite/__init__.py +12 -0
- pygpt_net/provider/core/{assistant_file → remote_file}/db_sqlite/patch.py +1 -1
- pygpt_net/provider/core/{assistant_file → remote_file}/db_sqlite/provider.py +23 -20
- pygpt_net/provider/core/{assistant_file → remote_file}/db_sqlite/storage.py +35 -27
- pygpt_net/provider/core/{assistant_file → remote_file}/db_sqlite/utils.py +5 -4
- pygpt_net/provider/core/{assistant_store → remote_store}/__init__.py +1 -1
- pygpt_net/provider/core/{assistant_store → remote_store}/base.py +10 -10
- pygpt_net/provider/core/{assistant_store → remote_store}/db_sqlite/__init__.py +1 -1
- pygpt_net/provider/core/{assistant_store → remote_store}/db_sqlite/patch.py +1 -1
- pygpt_net/provider/core/{assistant_store → remote_store}/db_sqlite/provider.py +16 -15
- pygpt_net/provider/core/{assistant_store → remote_store}/db_sqlite/storage.py +30 -23
- pygpt_net/provider/core/{assistant_store → remote_store}/db_sqlite/utils.py +5 -4
- pygpt_net/provider/core/{assistant_store → remote_store}/json_file.py +9 -9
- pygpt_net/provider/llms/google.py +2 -2
- pygpt_net/ui/base/config_dialog.py +3 -2
- pygpt_net/ui/dialog/assistant.py +3 -3
- pygpt_net/ui/dialog/plugins.py +3 -1
- pygpt_net/ui/dialog/remote_store_google.py +539 -0
- pygpt_net/ui/dialog/{assistant_store.py → remote_store_openai.py} +95 -95
- pygpt_net/ui/dialogs.py +5 -3
- pygpt_net/ui/layout/chat/attachments_uploaded.py +3 -3
- pygpt_net/ui/layout/chat/input.py +20 -2
- pygpt_net/ui/layout/chat/painter.py +6 -4
- pygpt_net/ui/layout/toolbox/computer_env.py +26 -8
- pygpt_net/ui/layout/toolbox/image.py +5 -5
- pygpt_net/ui/layout/toolbox/video.py +5 -4
- pygpt_net/ui/main.py +84 -3
- pygpt_net/ui/menu/tools.py +13 -5
- pygpt_net/ui/widget/dialog/base.py +3 -10
- pygpt_net/ui/widget/dialog/remote_store_google.py +56 -0
- pygpt_net/ui/widget/dialog/{assistant_store.py → remote_store_openai.py} +9 -9
- pygpt_net/ui/widget/element/button.py +4 -4
- pygpt_net/ui/widget/lists/remote_store_google.py +248 -0
- pygpt_net/ui/widget/lists/{assistant_store.py → remote_store_openai.py} +21 -21
- pygpt_net/ui/widget/option/checkbox_list.py +47 -9
- pygpt_net/ui/widget/option/combo.py +158 -4
- pygpt_net/ui/widget/textarea/input_extra.py +664 -0
- {pygpt_net-2.7.3.dist-info → pygpt_net-2.7.5.dist-info}/METADATA +48 -9
- {pygpt_net-2.7.3.dist-info → pygpt_net-2.7.5.dist-info}/RECORD +157 -130
- {pygpt_net-2.7.3.dist-info → pygpt_net-2.7.5.dist-info}/LICENSE +0 -0
- {pygpt_net-2.7.3.dist-info → pygpt_net-2.7.5.dist-info}/WHEEL +0 -0
- {pygpt_net-2.7.3.dist-info → pygpt_net-2.7.5.dist-info}/entry_points.txt +0 -0
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
# GitHub: https://github.com/szczyglis-dev/py-gpt #
|
|
7
7
|
# MIT License #
|
|
8
8
|
# Created By : Marcin Szczygliński #
|
|
9
|
-
# Updated Date:
|
|
9
|
+
# Updated Date: 2026.01.02 20:00:00 #
|
|
10
10
|
# ================================================== #
|
|
11
11
|
|
|
12
12
|
import json
|
|
13
13
|
import os
|
|
14
14
|
import uuid
|
|
15
15
|
|
|
16
|
-
from pygpt_net.item.
|
|
16
|
+
from pygpt_net.item.store import RemoteStoreItem
|
|
17
17
|
from pygpt_net.provider.core.assistant.base import BaseProvider
|
|
18
18
|
|
|
19
19
|
|
|
@@ -22,7 +22,7 @@ class JsonFileProvider(BaseProvider):
|
|
|
22
22
|
super(JsonFileProvider, self).__init__(window)
|
|
23
23
|
self.window = window
|
|
24
24
|
self.id = "json_file"
|
|
25
|
-
self.type = "
|
|
25
|
+
self.type = "remote_store"
|
|
26
26
|
self.config_file = 'assistants_vector_store.json'
|
|
27
27
|
|
|
28
28
|
def create_id(self) -> str:
|
|
@@ -33,11 +33,11 @@ class JsonFileProvider(BaseProvider):
|
|
|
33
33
|
"""
|
|
34
34
|
return str(uuid.uuid4())
|
|
35
35
|
|
|
36
|
-
def create(self, store:
|
|
36
|
+
def create(self, store: RemoteStoreItem) -> str:
|
|
37
37
|
"""
|
|
38
38
|
Create new and return its ID
|
|
39
39
|
|
|
40
|
-
:param store:
|
|
40
|
+
:param store: RemoteStoreItem
|
|
41
41
|
:return: vector store ID
|
|
42
42
|
"""
|
|
43
43
|
if store.id is None or store.id == "":
|
|
@@ -61,7 +61,7 @@ class JsonFileProvider(BaseProvider):
|
|
|
61
61
|
# deserialize
|
|
62
62
|
for id in data['items']:
|
|
63
63
|
item = data['items'][id]
|
|
64
|
-
store =
|
|
64
|
+
store = RemoteStoreItem()
|
|
65
65
|
self.deserialize(item, store)
|
|
66
66
|
items[id] = store
|
|
67
67
|
except Exception as e:
|
|
@@ -109,7 +109,7 @@ class JsonFileProvider(BaseProvider):
|
|
|
109
109
|
pass
|
|
110
110
|
|
|
111
111
|
@staticmethod
|
|
112
|
-
def serialize(item:
|
|
112
|
+
def serialize(item: RemoteStoreItem) -> dict:
|
|
113
113
|
"""
|
|
114
114
|
Serialize item to dict
|
|
115
115
|
|
|
@@ -124,7 +124,7 @@ class JsonFileProvider(BaseProvider):
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
@staticmethod
|
|
127
|
-
def deserialize(data: dict, item:
|
|
127
|
+
def deserialize(data: dict, item: RemoteStoreItem):
|
|
128
128
|
"""
|
|
129
129
|
Deserialize item from dict
|
|
130
130
|
|
|
@@ -140,7 +140,7 @@ class JsonFileProvider(BaseProvider):
|
|
|
140
140
|
if 'file_ids' in data:
|
|
141
141
|
item.file_ids = data['file_ids']
|
|
142
142
|
|
|
143
|
-
def dump(self, item:
|
|
143
|
+
def dump(self, item: RemoteStoreItem) -> str:
|
|
144
144
|
"""
|
|
145
145
|
Dump to string
|
|
146
146
|
|
|
@@ -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:
|
|
9
|
+
# Updated Date: 2026.01.02 19:00:00 #
|
|
10
10
|
# ================================================== #
|
|
11
11
|
|
|
12
12
|
from typing import Optional, List, Dict
|
|
@@ -70,7 +70,7 @@ class GoogleLLM(BaseLLM):
|
|
|
70
70
|
# -----------------------------------------------------------
|
|
71
71
|
built_tools = []
|
|
72
72
|
try:
|
|
73
|
-
built_tools = window.core.api.google.build_remote_tools(model=model) or []
|
|
73
|
+
built_tools = window.core.api.google.remote_tools.build_remote_tools(model=model) or []
|
|
74
74
|
except Exception as e:
|
|
75
75
|
window.core.debug.log(e)
|
|
76
76
|
|
|
@@ -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:
|
|
9
|
+
# Updated Date: 2026.01.01 15:00:00 #
|
|
10
10
|
# ================================================== #
|
|
11
11
|
|
|
12
12
|
from PySide6.QtCore import Qt
|
|
@@ -20,6 +20,7 @@ from pygpt_net.ui.widget.option.dictionary import OptionDict
|
|
|
20
20
|
from pygpt_net.ui.widget.option.input import OptionInput, PasswordInput
|
|
21
21
|
from pygpt_net.ui.widget.option.slider import OptionSlider
|
|
22
22
|
from pygpt_net.ui.widget.option.textarea import OptionTextarea
|
|
23
|
+
from pygpt_net.core.locale.placeholder import apply as trans_placeholder_apply
|
|
23
24
|
from pygpt_net.utils import trans
|
|
24
25
|
|
|
25
26
|
|
|
@@ -233,7 +234,7 @@ class BaseConfigDialog:
|
|
|
233
234
|
:param text: text (to translate)
|
|
234
235
|
:return: QLabel
|
|
235
236
|
"""
|
|
236
|
-
return DescLabel(trans(text))
|
|
237
|
+
return DescLabel(trans_placeholder_apply(trans(text)))
|
|
237
238
|
|
|
238
239
|
def add_urls(self, urls, align=Qt.AlignLeft) -> QWidget:
|
|
239
240
|
"""
|
pygpt_net/ui/dialog/assistant.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:
|
|
9
|
+
# Updated Date: 2026.01.02 19:00:00 #
|
|
10
10
|
# ================================================== #
|
|
11
11
|
|
|
12
12
|
from PySide6.QtCore import Qt
|
|
@@ -44,9 +44,9 @@ class Assistant(BaseConfigDialog):
|
|
|
44
44
|
|
|
45
45
|
# store
|
|
46
46
|
self.window.ui.nodes['assistant.btn.store.editor'] = QPushButton(QIcon(":/icons/db.svg"), "")
|
|
47
|
-
self.window.ui.nodes['assistant.btn.store.editor'].setToolTip(trans('dialog.
|
|
47
|
+
self.window.ui.nodes['assistant.btn.store.editor'].setToolTip(trans('dialog.remote_store.openai'))
|
|
48
48
|
self.window.ui.nodes['assistant.btn.store.editor'].clicked.connect(
|
|
49
|
-
lambda: self.window.controller.
|
|
49
|
+
lambda: self.window.controller.remote_store.openai.toggle_editor()
|
|
50
50
|
)
|
|
51
51
|
|
|
52
52
|
self.window.ui.nodes['assistant.btn.store.editor'].setAutoDefault(False)
|
pygpt_net/ui/dialog/plugins.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:
|
|
9
|
+
# Updated Date: 2026.01.01 15:00:00 #
|
|
10
10
|
# ================================================== #
|
|
11
11
|
|
|
12
12
|
from PySide6.QtCore import Qt
|
|
@@ -27,6 +27,7 @@ from pygpt_net.ui.widget.option.dictionary import OptionDict
|
|
|
27
27
|
from pygpt_net.ui.widget.option.input import OptionInput, PasswordInput
|
|
28
28
|
from pygpt_net.ui.widget.option.slider import OptionSlider
|
|
29
29
|
from pygpt_net.ui.widget.option.textarea import OptionTextarea
|
|
30
|
+
from pygpt_net.core.locale.placeholder import apply as trans_placeholder_apply
|
|
30
31
|
from pygpt_net.utils import trans
|
|
31
32
|
|
|
32
33
|
|
|
@@ -430,6 +431,7 @@ class Plugins:
|
|
|
430
431
|
# if txt_tooltip == f"{key}.tooltip":
|
|
431
432
|
# txt_tooltip = txt_desc
|
|
432
433
|
|
|
434
|
+
txt_desc = trans_placeholder_apply(txt_desc)
|
|
433
435
|
|
|
434
436
|
"""
|
|
435
437
|
if option['type'] not in no_desc_types:
|