Skip to content

Commit

Permalink
Improved python code execution
Browse files Browse the repository at this point in the history
  • Loading branch information
szczyglis-dev committed Dec 12, 2023
1 parent a23ac63 commit 91b4598
Show file tree
Hide file tree
Showing 14 changed files with 179 additions and 125 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.22** build: **2023.12.12** | Official website: https://pygpt.net | Docs: https://pygpt.readthedocs.io
Release: **2.0.23** build: **2023.12.12** | Official website: https://pygpt.net | Docs: https://pygpt.readthedocs.io

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

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

# CHANGELOG

## 2.0.23 (2023-12-12)

- Improved python code execution

## 2.0.22 (2023-12-12)

- Fix: env API KEY name for Langchain mode
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.22'
release = '2.0.23'

# -- 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-12 02:00
| **Last update:** 2023-12-12 14:00
| **Project website:** https://pygpt.net
| **GitHub:** https://github.com/szczyglis-dev/py-gpt
| **PyPI:** https://pypi.org/project/pygpt-net
| **Release:** 2.0.22 (2023-12-12)
| **Release:** 2.0.23 (2023-12-12)
.. toctree::
:maxdepth: 3
Expand Down
67 changes: 37 additions & 30 deletions privacy-policy.md
Original file line number Diff line number Diff line change
@@ -1,59 +1,66 @@
# Privacy Policy for "PYGPT" software
# Interpretation and Definitions

The "PYGPT" software (App) is intended for users over the age of 13. The application does not send to application owner servers any user data, such as the content of conversations, the way the application is used, or users' API keys and other secret data.
## Interpretation

The only data sent to the application server during its use is the version of your application sent during the update check that takes place when the application is launched.
Words with the first letter capitalized have specific meanings defined under these conditions. These definitions are valid regardless of whether the terms appear in singular or plural form.

Data sent by the user to OpenAI servers through the application using OpenAI's APIs is processed only by OpenAI and its privacy policy applies during this process:
## Definitions

**OpenAI Privacy Policy:**
https://openai.com/policies/privacy-policy
For the purpose of this Privacy Policy:

**"Author"** refers to the creator(s) of PYGPT, also known as "We," "Us," or "Our" in this document.
**"App"** denotes the PYGPT Application.
**"You"** represents any individual or entity using the App.
**"Application"** means the PYGPT software program that You have downloaded.

# Disclaimer

--------------------
## General Information

# Privacy Policy for "pygpt.net" website
The information provided by the App is for general purposes only. The Author assumes no responsibility for errors or omissions in the content.

At pygpt.net, accessible from https://pygpt.net, one of our main priorities is the privacy of our visitors. This Privacy Policy document contains types of information that is collected and recorded by pygpt.net and how we use it.
## Warranty and Liability

If you have additional questions or require more information about our Privacy Policy, do not hesitate to contact us: info@pygpt.net
The App is provided "as is," without warranty of any kind. The Author is not liable for any direct, indirect, incidental, or consequential damages arising from the use of the App. Content on the App is subject to change without notice.

## Age Restrictions

## Log Files
pygpt.net follows a standard procedure of using log files. These files log visitors when they visit websites. All hosting companies do this and a part of hosting services' analytics. The information collected by log files include internet protocol (IP) addresses, browser type, Internet Service Provider (ISP), date and time stamp, referring/exit pages, and possibly the number of clicks. These are not linked to any information that is personally identifiable. The purpose of the information is for analyzing trends, administering the site, tracking users' movement on the website, and gathering demographic information.
The App is intended for users who are at least 13 years old.

## External Links

## Cookies
Like any other website, pygpt.net uses "cookies". These cookies are used to store information including visitors' preferences, session cookie, and the pages on the website that the visitor accessed or visited. The information is used to optimize the users' experience by customizing our web page content based on visitors' browser type and/or other information.
The App may contain links to external websites not maintained by the Author. We do not endorse and are not responsible for the content of these sites.

## Errors and Omissions

## Google Cookies
Google is one of a third-party vendor on our site. It also uses cookies to serve services like Analytics. You can check Google Privacy Policy at the following URL: https://policies.google.com/
The information from the App is for general guidance and should not be relied upon as the sole basis for making decisions without consulting primary, more accurate, or more timely sources of information.

## No Responsibility

## Privacy Policies
You may consult this list to find the Privacy Policy for each of the advertising or vendor partners of pygpt.net.
The Author provides no warranty regarding the App’s content and shall not be responsible for any decisions made based on such information.

Third-party ad servers or ad networks uses technologies like cookies, JavaScript, or Web Beacons that are used in their respective advertisements and links that appear on pygpt.net, which are sent directly to users' browser. They automatically receive your IP address when this occurs. These technologies are used to measure the effectiveness of their advertising campaigns and/or to personalize the advertising content that you see on websites that you visit.
## "Use at Your Own Risk" Disclaimer

Note that pygpt.net has no access to or control over these cookies that are used by third-party advertisers.
The information in the App is provided with no guarantees of completeness, accuracy, or usefulness. The Author will not be liable for any outcomes from the use of this information.

## Token Usage

## Third Party Privacy Policies
pygpt.net's Privacy Policy does not apply to other advertisers or websites. Thus, we are advising you to consult the respective Privacy Policies of these third-party ad servers for more detailed information. It may include their practices and instructions about how to opt-out of certain options.
Be aware of your token usage with your API Key on the OpenAI website. Additional tokens may be used by activated plugins. Always verify your actual token usage on OpenAI’s Usage Page.

You can choose to disable cookies through your individual browser options. To know more detailed information about cookie management with specific web browsers, it can be found at the browsers' respective websites.
# Privacy of Your Data

## Data Handling

## Children's Information
Another part of our priority is adding protection for children while using the internet. We encourage parents and guardians to observe, participate in, and/or monitor and guide their online activity.
The App does not transmit personal data, like conversation content or API keys, to the Author. The only data sent is the App version during updates.

pygpt.net does not knowingly collect any Personal Identifiable Information from children under the age of 13. If you think that your child provided this kind of information on our website, we strongly encourage you to contact us immediately and we will do our best efforts to promptly remove such information from our records.
## OpenAI Data Processing

Data you send to OpenAI through the App is subject to OpenAI's privacy policy.

## Online Privacy Policy Only
This Privacy Policy for "pygpt.net" website applies only to our online activities and is valid for visitors to our website with regards to the information that they shared and/or collect in pygpt.net. This policy is not applicable to any information collected offline or via channels other than this website.
**OpenAI Privacy Policy**

https://openai.com/policies/privacy-policy

## Your Consent

## Consent
By using our website, you hereby consent to our Privacy Policy for "pygpt.net" website and agree to its Terms and Conditions.
By using our App, you consent to our Privacy Policy and agree to its terms and conditions.
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.22"
version = "2.0.23"
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"
readme = "README.md"
authors = [{ name = "Marcin Szczygliński", email = "info@pygpt.net" }]
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from setuptools import setup, find_packages

VERSION = '2.0.22'
VERSION = '2.0.23'
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'
LONG_DESCRIPTION = 'Package containing a GPT-4, GPT-4V, GPT-3, Whisper, TTS and DALL-E 3 AI desktop assistant with chatbot, ' \
LONG_DESCRIPTION = 'Package contains a GPT-4, GPT-4V, GPT-3, Whisper, TTS and DALL-E 3 Desktop AI Assistant with chatbot, ' \
'text completion, vision and image generation, internet access and more - using OpenAI API and your own API ' \
'Key. Includes context memory and history, editable presets, customizable UI and more. '

Expand Down
8 changes: 8 additions & 0 deletions src/pygpt_net/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2.0.23 (2023-12-12)

- Improved python code execution

2.0.22 (2023-12-12)

- Fix: env API KEY name for Langchain mode

2.0.21 (2023-12-12)

- Simplified assistant configuration
Expand Down
4 changes: 2 additions & 2 deletions src/pygpt_net/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
# GitHub: https://github.com/szczyglis-dev/py-gpt #
# MIT License #
# Created By : Marcin Szczygliński #
# Updated Date: 2023.12.12 01:00:00 #
# Updated Date: 2023.12.12 14:00:00 #
# ================================================== #

__author__ = "Marcin Szczygliński"
__copyright__ = "Copyright 2023, Marcin Szczygliński"
__credits__ = ["Marcin Szczygliński"]
__license__ = "MIT"
__version__ = "2.0.22"
__version__ = "2.0.23"
__build__ = "2023.12.12"
__maintainer__ = "Marcin Szczygliński"
__github__ = "https://github.com/szczyglis-dev/py-gpt"
Expand Down
2 changes: 1 addition & 1 deletion src/pygpt_net/core/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def get_prompt(self):
14) Use ONLY params described in command definition, do NOT use any additional params not described on list
15) ALWAYS remember that any text content must appear at the beginning of your response and commands must only be included at the end.
16) Try to run commands executed in the user's system in the background if running them may prevent receiving a response (e.g. when it is a desktop application)
17) Every command param must be placed in one line, so when you generate code you must put all of code in one line
Commands list:
'''

Expand Down
3 changes: 3 additions & 0 deletions src/pygpt_net/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ def init(self, all=True, log=False):
:param log: log loading
"""
if not self.initialized:
if all:
v = self.get_version()
print("Starting PYGPT v{}".format(v))
self.install()
self.load(all, log)
self.initialized = True
Expand Down
1 change: 1 addition & 0 deletions src/pygpt_net/data/win32/.~lock.README.rtf#
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
,marcin,marcin-Legion,12.12.2023 14:21,file:///home/marcin/.config/libreoffice/4;
1 change: 1 addition & 0 deletions src/pygpt_net/data/win32/.~lock.USER-LICENSE.rtf#
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
,marcin,marcin-Legion,12.12.2023 14:17,file:///home/marcin/.config/libreoffice/4;
Loading

0 comments on commit 91b4598

Please sign in to comment.