Skip to content

Commit

Permalink
Updated version
Browse files Browse the repository at this point in the history
  • Loading branch information
szczyglis-dev committed Dec 9, 2023
1 parent 640870b commit 6bd6ba7
Show file tree
Hide file tree
Showing 15 changed files with 540 additions and 131 deletions.
70 changes: 35 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PYGPT v2

Release: **2.0.10** build: **2023.12.09** | Official website: https://pygpt.net | Docs: https://pygpt.readthedocs.io
Release: **2.0.11** build: **2023.12.09** | Official website: https://pygpt.net | Docs: https://pygpt.readthedocs.io

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

Expand Down Expand Up @@ -354,37 +354,6 @@ This lets you quickly use them again for generating new images later on.
The app keeps a history of all your prompts, allowing you to revisit any session and reuse previous
prompts for creating new images.

# Plugins

The application can be enhanced with plugins to add new features.

The following plugins are currently available, and GPT can use them instantly:

- `Command: Google Web Search` - allows searching the internet via the Google Custom Search Engine.

- `Command: Files I/O` - grants access to the local filesystem, enabling GPT to read and write files,
as well as list and create directories.

- `Command: Code Interpreter` - responsible for generating and executing Python code, functioning much like
the Code Interpreter on ChatGPT, but locally. This means GPT can interface with any script, application, or code.
The plugin can also execute system commands, allowing GPT to integrate with your operating system.
Plugins can work in conjunction to perform sequential tasks; for example, the `Files` plugin can write generated
Python code to a file, which the `Code Interpreter` can execute it and return its result to GPT.

- `Command: Custom Commands` - allows you to create and execute custom commands on your system.

- `Audio Output (Microsoft Azure)` - provides voice synthesis using the Microsoft Azure Text To Speech API.

- `Audio Output (OpenAI TTS)` - provides voice synthesis using the OpenAI Text To Speech API.

- `Audio Input (OpenAI Whisper)` - offers speech recognition through the OpenAI Whisper API.

- `Self Loop` - creates a self-loop mode, where GPT can generate a continuous conversation between
two AI instances, effectively talking to itself.

- `Real Time` - automatically adds the current date and time to prompts, informing the model of the real-time moment.


# Managing models

All models are specified in the configuration file `models.json`, which you can customize.
Expand Down Expand Up @@ -515,9 +484,36 @@ def run():

To integrate your own model or provider into **PYGPT**, you can reference the sample classes located in the `llm` directory of the application. These samples can act as an example for your custom class. Ensure that your custom wrapper class includes two essential methods: `chat` and `completion`. These methods should return the respective objects required for the model to operate in `chat` and `completion` modes.


# Plugins

The application can be enhanced with plugins to add new features.

The following plugins are currently available, and GPT can use them instantly:

- `Command: Google Web Search` - allows searching the internet via the Google Custom Search Engine.

- `Command: Files I/O` - grants access to the local filesystem, enabling GPT to read and write files,
as well as list and create directories.

- `Command: Code Interpreter` - responsible for generating and executing Python code, functioning much like
the Code Interpreter on ChatGPT, but locally. This means GPT can interface with any script, application, or code.
The plugin can also execute system commands, allowing GPT to integrate with your operating system.
Plugins can work in conjunction to perform sequential tasks; for example, the `Files` plugin can write generated
Python code to a file, which the `Code Interpreter` can execute it and return its result to GPT.

- `Command: Custom Commands` - allows you to create and execute custom commands on your system.

- `Audio Output (Microsoft Azure)` - provides voice synthesis using the Microsoft Azure Text To Speech API.

- `Audio Output (OpenAI TTS)` - provides voice synthesis using the OpenAI Text To Speech API.

- `Audio Input (OpenAI Whisper)` - offers speech recognition through the OpenAI Whisper API.

- `Self Loop` - creates a self-loop mode, where GPT can generate a continuous conversation between
two AI instances, effectively talking to itself.

- `Real Time` - automatically adds the current date and time to prompts, informing the model of the real-time moment.

## Command: Files I/O

The plugin allows for file management within the local filesystem. It enables the model to create, read, and write files and directories located in the `output` directory, which can be found in the user's work directory. With this plugin, the AI can also generate Python code files and thereafter execute that code within the user's system.
Expand Down Expand Up @@ -620,7 +616,7 @@ Allows system commands execution. *Default:* `True`

With the `Custom Commands` plugin, you can integrate **PYGPT** with your operating system and scripts or applications. You can define an unlimited number of custom commands and instruct GPT on when and how to execute them. Configuration is straightforward, and **PYGPT** includes a simple tutorial command for testing and learning how it works:

![v2_custom_cmd](https://github.com/szczyglis-dev/py-gpt/assets/61396542/f236a30e-3c17-49f4-94df-597cf41feed7)
![v2_custom_cmd](https://github.com/szczyglis-dev/py-gpt/assets/61396542/b0d01e9b-c6f8-4e85-be56-106abec88200)

To add a new custom command, click the **ADD** button and then:

Expand Down Expand Up @@ -676,7 +672,7 @@ PYGPT provides simple tutorial command to show how it work, to run it just ask G

```> please execute tutorial test command```

![v2_code_execute_example](https://github.com/szczyglis-dev/py-gpt/assets/61396542/df94b500-d6fe-462f-98d8-6c8a9e42f9f4)
![v2_custom_cmd_example](https://github.com/szczyglis-dev/py-gpt/assets/61396542/8df560db-aef2-45c4-81a1-4fc56e5282f2)


## Command: Google Web Search
Expand Down Expand Up @@ -1042,6 +1038,10 @@ may consume additional tokens that are not displayed in the main window.

# CHANGELOG

## 2.0.11 (2023-12-09)

- Small fixes

## 2.0.10 (2023-12-09)

- Updated locale
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.10'
release = '2.0.11'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
Binary file removed docs/source/images/v2_code_execute_example.png
Binary file not shown.
Binary file modified docs/source/images/v2_custom_cmd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/images/v2_custom_cmd_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 3 additions & 4 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-09 11:00
| **Last update:** 2023-12-09 12:00
| **Project website:** https://pygpt.net
| **GitHub:** https://github.com/szczyglis-dev/py-gpt
| **PyPI:** https://pypi.org/project/pygpt-net
| **Release:** 2.0.10 (2023-12-08)
| **Release:** 2.0.11 (2023-12-08)
.. toctree::
:maxdepth: 3
Expand All @@ -29,9 +29,8 @@ Contents
context
presets
images
plugins
models
plugins_list
plugins
tokens
configuration
notebook
Expand Down
Loading

0 comments on commit 6bd6ba7

Please sign in to comment.