Skip to content

Commit

Permalink
Code execution fix
Browse files Browse the repository at this point in the history
  • Loading branch information
szczyglis-dev committed Dec 7, 2023
1 parent 8bfbecc commit 61db183
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 12 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PYGPT v2

Release: **2.0.2** build: **2023.12.07** | Official website: https://pygpt.net | Docs: https://pygpt.readthedocs.io
Release: **2.0.3** build: **2023.12.07** | Official website: https://pygpt.net | Docs: https://pygpt.readthedocs.io

PyPi: https://pypi.org/project/pygpt-net

Expand Down Expand Up @@ -943,6 +943,10 @@ may consume additional tokens that are not displayed in the main window.

# CHANGELOG

## 2.0.3 (2023-12-07)

- Python code execution fix

## 2.0.2 (2023-12-07)

- Added python command template settings
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
project = 'PYGPT'
copyright = '2023, pygpt.net'
author = 'szczyglis-dev, Marcin Szczygliński'
release = '2.0.2'
release = '2.0.3'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
4 changes: 2 additions & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
PYGPT v2 - pygpt.net
====================

| **Last update:** 2023-12-07 19:00
| **Last update:** 2023-12-07 21:00
| **Project website:** https://pygpt.net
| **GitHub:** https://github.com/szczyglis-dev/py-gpt
| **PyPI:** https://pypi.org/project/pygpt-net
| **Release:** 2.0.2 (2023-12-07)
| **Release:** 2.0.3 (2023-12-07)
.. toctree::
:maxdepth: 3
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "pygpt-net"
version = "2.0.2"
version = "2.0.3"
description = "GPT4, GPT4-V, GPT3, Whisper, TTS and DALL-E 3 AI desktop assistant with chatbot, text completion and image analyze and image generation"
readme = "README.md"
authors = [{ name = "Marcin Szczygliński", email = "[email protected]" }]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

VERSION = '2.0.2'
VERSION = '2.0.3'
DESCRIPTION = 'GPT4, GPT4-V, GPT3, Whisper, TTS and DALL-E 3 AI desktop assistant with chatbot, text completion and ' \
'image analyze and image generation'
LONG_DESCRIPTION = 'A package containing a GPT4, GPT4-V, GPT3, Whisper, TTS and DALL-E 3 AI desktop assistant, chatbot, ' \
Expand Down
4 changes: 4 additions & 0 deletions src/pygpt_net/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2.0.3 (2023-12-07)

- Python code execution fix

2.0.2 (2023-12-07)

- Added python command template settings
Expand Down
2 changes: 1 addition & 1 deletion src/pygpt_net/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
__copyright__ = "Copyright 2023, Marcin Szczygliński"
__credits__ = ["Marcin Szczygliński"]
__license__ = "MIT"
__version__ = "2.0.2"
__version__ = "2.0.3"
__build__ = "2023.12.07"
__maintainer__ = "Marcin Szczygliński"
__github__ = "https://github.com/szczyglis-dev/py-gpt"
Expand Down
2 changes: 1 addition & 1 deletion src/pygpt_net/core/plugin/cmd_code_interpreter/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def cmd(self, ctx, cmds):
file.close()

# run code
cmd = "{} {}".format(self.options["python_cmd"], path)
cmd = self.options['python_cmd_tpl']['value'].format(filename=path)
process = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = process.communicate()
Expand Down
8 changes: 4 additions & 4 deletions version.rc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
VSVersionInfo(
ffi=FixedFileInfo(
filevers=(2, 0, 2, 0),
prodvers=(2, 0, 2, 0),
filevers=(2, 0, 3, 0),
prodvers=(2, 0, 3, 0),
mask=0x3f,
flags=0x0,
OS=0x4,
Expand All @@ -16,12 +16,12 @@ StringFileInfo(
u'040904B0',
[StringStruct(u'CompanyName', u'pygpt.net'),
StringStruct(u'FileDescription', u'AI Assistant powered by GPT-4, GPT-3 and DALL-E 3, assistant, chatbot, text completion, image generation and analyze'),
StringStruct(u'FileVersion', u'2.0.2'),
StringStruct(u'FileVersion', u'2.0.3'),
StringStruct(u'InternalName', u'Py-GPT'),
StringStruct(u'LegalCopyright', u'(c) 2023 pygpt.net, Marcin Szczygliński'),
StringStruct(u'OriginalFilename', u'Py-GPT.exe'),
StringStruct(u'ProductName', u'pygpt.net'),
StringStruct(u'ProductVersion', u'2.0.2')])
StringStruct(u'ProductVersion', u'2.0.3')])
]),
VarFileInfo([VarStruct(u'Translation', [1033, 1200])])
]
Expand Down

0 comments on commit 61db183

Please sign in to comment.