Skip to content

Commit 611f9bd

Browse files
committed
Updated to 2.0.13
1 parent 92997f0 commit 611f9bd

File tree

100 files changed

+72
-26
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+72
-26
lines changed

README.md

Lines changed: 9 additions & 2 deletions

docs/Makefile

100644100755
File mode changed.

docs/install.txt

100644100755
File mode changed.

docs/make.bat

100644100755
File mode changed.

docs/requirements.txt

100644100755
File mode changed.

docs/source/advanced.rst

100644100755
File mode changed.

docs/source/attachments.rst

100644100755
File mode changed.

docs/source/comin_soon.rst

100644100755
File mode changed.

docs/source/conf.py

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
project = 'PYGPT'
1010
copyright = '2023, pygpt.net'
1111
author = 'szczyglis-dev, Marcin Szczygliński'
12-
release = '2.0.12'
12+
release = '2.0.13'
1313

1414
# -- General configuration ---------------------------------------------------
1515
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

docs/source/configuration.rst

100644100755
Lines changed: 1 addition & 1 deletion

docs/source/context.rst

100644100755
File mode changed.

docs/source/credits.rst

100644100755
File mode changed.

docs/source/images.rst

100644100755
File mode changed.

docs/source/images/v2_azure.png

100644100755
File mode changed.

docs/source/images/v2_code_execute.png

100644100755
File mode changed.

docs/source/images/v2_context_list.png

100644100755
File mode changed.

docs/source/images/v2_custom_cmd.png

100644100755
File mode changed.

docs/source/images/v2_custom_cmd_example.png

100644100755
File mode changed.

docs/source/images/v2_dalle.png

100644100755
File mode changed.

docs/source/images/v2_file_input.png

100644100755
File mode changed.

docs/source/images/v2_file_output.png

100644100755
File mode changed.

docs/source/images/v2_main.png

100644100755
File mode changed.

docs/source/images/v2_mode_assistant.png

100644100755
File mode changed.

docs/source/images/v2_mode_chat.png

100644100755
File mode changed.

docs/source/images/v2_mode_completion.png

100644100755
File mode changed.

docs/source/images/v2_mode_langchain.png

100644100755
File mode changed.

docs/source/images/v2_mode_vision.png

100644100755
File mode changed.

docs/source/images/v2_mode_vision_upload.png

100644100755
File mode changed.

docs/source/images/v2_notepad.png

100644100755
File mode changed.

docs/source/images/v2_plugin_google.png

100644100755
File mode changed.

docs/source/images/v2_preset.png

100644100755
File mode changed.

docs/source/images/v2_settings.png

100644100755
File mode changed.

docs/source/images/v2_tokens1.png

100644100755
File mode changed.

docs/source/images/v2_tokens2.png

100644100755
File mode changed.

docs/source/index.rst

100644100755
Lines changed: 2 additions & 2 deletions

docs/source/intro.rst

100644100755
File mode changed.

docs/source/models.rst

100644100755
File mode changed.

docs/source/modes.rst

100644100755
File mode changed.

docs/source/notebook.rst

100644100755
File mode changed.

docs/source/plugins.rst

100644100755
File mode changed.

docs/source/plugins_list.rst

100644100755
File mode changed.

docs/source/presets.rst

100644100755
File mode changed.

docs/source/quick_start.rst

100644100755
File mode changed.

docs/source/requirements.rst

100644100755
File mode changed.

docs/source/tokens.rst

100644100755
File mode changed.

docs/source/updates.rst

100644100755
File mode changed.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "pygpt-net"
7-
version = "2.0.12"
7+
version = "2.0.13"
88
description = "Desktop AI Assistant powered by GPT-4, GPT-4V, GPT-3, Whisper, TTS and DALL-E 3 with chatbot, assistant, text completion, vision and image generation, real-time internet access, commands and code execution, files upload and download and more"
99
readme = "README.md"
1010
authors = [{ name = "Marcin Szczygliński", email = "info@pygpt.net" }]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from setuptools import setup, find_packages
22

3-
VERSION = '2.0.12'
3+
VERSION = '2.0.13'
44
DESCRIPTION = 'Desktop AI Assistant powered by GPT-4, GPT-4V, GPT-3, Whisper, TTS and DALL-E 3 with chatbot, assistant, text completion, ' \
55
'vision and image generation, real-time internet access, commands and code execution, files upload and download and more'
66
LONG_DESCRIPTION = 'Package containing a GPT-4, GPT-4V, GPT-3, Whisper, TTS and DALL-E 3 AI desktop assistant with chatbot, ' \

src/pygpt_net/CHANGELOG.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2.0.13 (2023-12-10)
2+
3+
- Fixed path resolving in "open in directory" option on Windows OS
4+
- Added real-time apply of "layout density" (after "save changes" in Settings)
5+
- Default "layout density" changed to 0
6+
- Updated locale
7+
18
2.0.12 (2023-12-09)
29

310
- Improved system commands execution

src/pygpt_net/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
# GitHub: https://github.com/szczyglis-dev/py-gpt #
77
# MIT License #
88
# Created By : Marcin Szczygliński #
9-
# Updated Date: 2023.12.09 12:00:00 #
9+
# Updated Date: 2023.12.10 13:00:00 #
1010
# ================================================== #
1111

1212
__author__ = "Marcin Szczygliński"
1313
__copyright__ = "Copyright 2023, Marcin Szczygliński"
1414
__credits__ = ["Marcin Szczygliński"]
1515
__license__ = "MIT"
16-
__version__ = "2.0.12"
17-
__build__ = "2023.12.09"
16+
__version__ = "2.0.13"
17+
__build__ = "2023.12.10"
1818
__maintainer__ = "Marcin Szczygliński"
1919
__github__ = "https://github.com/szczyglis-dev/py-gpt"
2020
__website__ = "https://pygpt.net"

src/pygpt_net/core/assistants.py

100644100755
File mode changed.

src/pygpt_net/core/attachments.py

100644100755
File mode changed.

src/pygpt_net/core/chain.py

100644100755
File mode changed.

src/pygpt_net/core/controller/assistant.py

100644100755
File mode changed.

src/pygpt_net/core/controller/attachment.py

100644100755
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
# GitHub: https://github.com/szczyglis-dev/py-gpt #
77
# MIT License #
88
# Created By : Marcin Szczygliński #
9-
# Updated Date: 2023.12.05 22:00:00 #
9+
# Updated Date: 2023.12.10 13:00:00 #
1010
# ================================================== #
1111
import os
1212
from datetime import datetime
1313

1414
from PySide6.QtWidgets import QFileDialog
15+
from pathlib import PurePath
1516
from showinfm import show_in_file_manager
1617

1718
from ..utils import trans
@@ -190,7 +191,10 @@ def open_dir(self, mode, idx):
190191
file_id = self.attachments.get_id_by_idx(mode, idx)
191192
data = self.attachments.get_by_id(mode, file_id)
192193
if data.path is not None and data.path != '' and os.path.exists(data.path):
193-
show_in_file_manager(data.path)
194+
path = data.path
195+
parts = path_split = PurePath(path).parts
196+
path_os = os.path.join(*parts) # fix for windows \\ path separators
197+
show_in_file_manager(path_os)
194198

195199
def toggle_send_clear(self, value):
196200
"""

src/pygpt_net/core/controller/files.py

100644100755
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
# GitHub: https://github.com/szczyglis-dev/py-gpt #
77
# MIT License #
88
# Created By : Marcin Szczygliński #
9-
# Updated Date: 2023.12.05 22:00:00 #
9+
# Updated Date: 2023.12.10 13:00:00 #
1010
# ================================================== #
1111
import os
1212

13+
from pathlib import PurePath
1314
from showinfm import show_in_file_manager
1415

1516
from ..utils import trans
@@ -77,5 +78,7 @@ def open_dir(self, path):
7778
"""
7879
Opens in directory
7980
"""
80-
if os.path.exists(path):
81-
show_in_file_manager(path)
81+
parts = path_split = PurePath(path).parts
82+
path_os = os.path.join(*parts) # fix for windows \\ path separators
83+
if os.path.exists(path_os):
84+
show_in_file_manager(path_os, True)

src/pygpt_net/core/controller/layout.py

100644100755
File mode changed.

src/pygpt_net/core/controller/notepad.py

100644100755
File mode changed.

src/pygpt_net/core/controller/settings.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# GitHub: https://github.com/szczyglis-dev/py-gpt #
77
# MIT License #
88
# Created By : Marcin Szczygliński #
9-
# Updated Date: 2023.12.07 19:00:00 #
9+
# Updated Date: 2023.12.10 13:00:00 #
1010
# ================================================== #
1111
import json
1212
import os
@@ -40,6 +40,7 @@ def __init__(self, window=None):
4040
}
4141
self.width = 500
4242
self.height = 600
43+
self.before_config = {}
4344
self.initialized = False
4445

4546
def load(self):
@@ -52,6 +53,9 @@ def load(self):
5253
self.initialized = True
5354
f.close()
5455

56+
# store copy of loaded config data
57+
self.before_config = dict(self.window.config.data)
58+
5559
def save(self, id=None):
5660
"""
5761
Saves settings
@@ -76,6 +80,11 @@ def save(self, id=None):
7680
self.update_font_size()
7781
self.window.controller.ui.update()
7882

83+
# update layout if needed
84+
if self.before_config['layout.density'] != self.window.config.data['layout.density']:
85+
self.window.controller.theme.reload()
86+
87+
7988
def save_all(self):
8089
"""Saves all settings"""
8190
info = trans('info.settings.all.saved')
@@ -239,6 +248,8 @@ def change(self, id, value, section=None):
239248
:param value: input option value
240249
:param section: settings section
241250
"""
251+
self.before_config = dict(self.window.config.data)
252+
242253
# dialog: preset
243254
if id.startswith('preset.'):
244255
self.window.controller.presets.config_change(id, value, section)
@@ -287,6 +298,8 @@ def apply(self, id, value, type=None, section=None):
287298
:param type: option type (slider, input, None)
288299
:param section: option section (settings, preset.editor, None)
289300
"""
301+
self.before_config = dict(self.window.config.data)
302+
290303
# dialog: preset
291304
if id.startswith('preset.'):
292305
self.window.controller.presets.config_slider(id, value, type, section)

src/pygpt_net/core/controller/theme.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# GitHub: https://github.com/szczyglis-dev/py-gpt #
77
# MIT License #
88
# Created By : Marcin Szczygliński #
9-
# Updated Date: 2023.12.08 14:00:00 #
9+
# Updated Date: 2023.12.10 13:00:00 #
1010
# ================================================== #
1111
import json
1212
import os
@@ -161,3 +161,8 @@ def setup(self):
161161
# apply theme
162162
theme = self.window.config.data['theme']
163163
self.toggle(theme)
164+
165+
def reload(self):
166+
"""Reloads theme"""
167+
theme = self.window.config.data['theme']
168+
self.toggle(theme)

src/pygpt_net/core/debug/assistants.py

100644100755
File mode changed.

src/pygpt_net/core/debug/attachments.py

100644100755
File mode changed.

src/pygpt_net/core/llm/Anthropic.py

100644100755
File mode changed.

src/pygpt_net/core/llm/AzureOpenAI.py

100644100755
File mode changed.

src/pygpt_net/core/llm/HuggingFace.py

100644100755
File mode changed.

src/pygpt_net/core/llm/Llama2.py

100644100755
File mode changed.

src/pygpt_net/core/llm/Ollama.py

100644100755
File mode changed.

src/pygpt_net/core/llm/OpenAI.py

100644100755
File mode changed.

src/pygpt_net/core/llm/__init__.py

100644100755
File mode changed.

src/pygpt_net/core/notepad.py

100644100755
File mode changed.

src/pygpt_net/core/plugin/audio_openai_tts/__init__.py

100644100755
File mode changed.

src/pygpt_net/core/plugin/audio_openai_tts/plugin.py

100644100755
File mode changed.

src/pygpt_net/core/plugin/audio_openai_whisper/__init__.py

100644100755
File mode changed.

src/pygpt_net/core/plugin/audio_openai_whisper/plugin.py

100644100755
File mode changed.

src/pygpt_net/core/plugin/cmd_code_interpreter/__init__.py

100644100755
File mode changed.

src/pygpt_net/core/plugin/cmd_custom/__init__.py

100644100755
File mode changed.

src/pygpt_net/core/plugin/cmd_custom/plugin.py

100644100755
File mode changed.

src/pygpt_net/core/plugin/cmd_files/__init__.py

100644100755
File mode changed.

src/pygpt_net/core/plugin/cmd_files/plugin.py

100644100755
File mode changed.

src/pygpt_net/core/ui/attachments.py

100644100755
File mode changed.

src/pygpt_net/core/ui/dialog/assistant.py

100644100755
File mode changed.

src/pygpt_net/core/ui/dialog/logger.py

100644100755
File mode changed.

src/pygpt_net/core/ui/highlighter.py

100644100755
File mode changed.

src/pygpt_net/core/ui/widget/__init__.py

100644100755
File mode changed.

src/pygpt_net/core/ui/widget/dialog.py

100644100755
File mode changed.

src/pygpt_net/core/ui/widget/filesystem.py

100644100755
File mode changed.

src/pygpt_net/core/ui/widget/image.py

100644100755
File mode changed.

src/pygpt_net/core/ui/widget/select.py

100644100755
File mode changed.

src/pygpt_net/core/ui/widget/settings.py

100644100755
File mode changed.

src/pygpt_net/core/ui/widget/textarea.py

100644100755
File mode changed.

src/pygpt_net/core/updater.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# GitHub: https://github.com/szczyglis-dev/py-gpt #
77
# MIT License #
88
# Created By : Marcin Szczygliński #
9-
# Updated Date: 2023.12.07 10:00:00 #
9+
# Updated Date: 2023.12.10 13:00:00 #
1010
# ================================================== #
1111

1212
from urllib.request import urlopen, Request
@@ -176,6 +176,13 @@ def patch_config(self):
176176
old = parse_version(version)
177177
current = parse_version(self.window.version)
178178
if old < current:
179+
if old < parse_version("2.0.13"):
180+
if 'layout.density' not in data:
181+
data['layout.density'] = 0
182+
else:
183+
if data['layout.density'] == -2:
184+
data['layout.density'] = 0
185+
updated = True
179186
if old < parse_version("2.0.8"):
180187
if 'plugins' not in data:
181188
data['plugins'] = {}

src/pygpt_net/data/config/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"img_resolution": "1024x1024",
4040
"img_variants": 1,
4141
"lang": "en",
42-
"layout.density": -2,
42+
"layout.density": 0,
4343
"max_context_history_items": 100,
4444
"max_output_tokens": 1024,
4545
"max_tokens_length": 32000,

src/pygpt_net/data/config/presets/current.assistant.json

100644100755
File mode changed.

src/pygpt_net/data/config/presets/current.langchain.json

100644100755
File mode changed.

src/pygpt_net/data/config/presets/current.vision.json

100644100755
File mode changed.

src/pygpt_net/data/config/settings.json

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"type": "int",
6060
"slider": true,
6161
"label": "layout.density",
62-
"value": -2,
62+
"value": 0,
6363
"min": -5,
6464
"max": 5,
6565
"multiplier": 1,

src/pygpt_net/data/css/highlighter.json

100644100755
File mode changed.

src/pygpt_net/data/locale/locale.en.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ menu.audio.input.whisper = Input: speech recognition (OpenAI Whisper)
110110
menu.config = Config
111111
menu.config.edit.config = Edit config.json...
112112
menu.config.edit.models = Edit models.json...
113-
menu.config.open_dir = Open work dir...
113+
menu.config.open_dir = Open working dir...
114114
menu.config.save = Save config
115115
menu.config.settings = Settings...
116116
menu.debug = Debug

src/pygpt_net/data/logo_v2.svg

100644100755
File mode changed.

version.rc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
VSVersionInfo(
22
ffi=FixedFileInfo(
3-
filevers=(2, 0, 12, 0),
4-
prodvers=(2, 0, 12, 0),
3+
filevers=(2, 0, 13, 0),
4+
prodvers=(2, 0, 13, 0),
55
mask=0x3f,
66
flags=0x0,
77
OS=0x4,
@@ -16,12 +16,12 @@ StringFileInfo(
1616
u'040904B0',
1717
[StringStruct(u'CompanyName', u'pygpt.net'),
1818
StringStruct(u'FileDescription', u'Desktop AI Assistant powered by GPT-4, GPT-3 and DALL-E 3: assistant, chatbot, text completion, image generation and analyze and more'),
19-
StringStruct(u'FileVersion', u'2.0.12'),
19+
StringStruct(u'FileVersion', u'2.0.13'),
2020
StringStruct(u'InternalName', u'Py-GPT'),
2121
StringStruct(u'LegalCopyright', u'(c) 2023 pygpt.net, Marcin Szczygliński'),
2222
StringStruct(u'OriginalFilename', u'Py-GPT.exe'),
2323
StringStruct(u'ProductName', u'pygpt.net'),
24-
StringStruct(u'ProductVersion', u'2.0.12')])
24+
StringStruct(u'ProductVersion', u'2.0.13')])
2525
]),
2626
VarFileInfo([VarStruct(u'Translation', [1033, 1200])])
2727
]

0 commit comments

Comments
 (0)