Skip to content

Commit 0d12a3c

Browse files
committed
- Minor bug fix. RawDog : generate
1 parent ca0ead7 commit 0d12a3c

File tree

6 files changed

+13
-6
lines changed

6 files changed

+13
-6
lines changed

assets/Figure_1.png

6.16 KB
Loading

docs/CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,4 +346,10 @@ For instance:
346346
1. RawDog:
347347
- Give consent to script execution
348348
- Execute script internally or externally
349-
- Choose python interpreter name
349+
- Choose python interpreter name
350+
351+
## v0.4.3
352+
353+
**What's new?**
354+
355+
- Minor bug fix. RawDog : *generate*

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ $ git diff | pytgpt generate "Here is a diff file: {{stream}} Make a concise com
506506
507507
### Introducing RawDog
508508

509-
RawDog is a masterpiece feature that exploits the versatile capabilities of Python to command and control your system as per your needs. You can do literally anything with it, since it generates and executes python codes, driven by **your prompts**! To have a bite of *rawdog* simply append the flag `--rawdog` *shortcut* `-rd` in *generate/interactive* mode. This introduces a never seen-before feature in the *tgpt ecosystem*. Thanks to [AbanteAI/rawdog](https://github.com/AbanteAI/rawdog) for the idea.
509+
RawDog is a masterpiece feature that exploits the versatile capabilities of Python to command and control your system as per your needs. You can literally do anything with it, since it generates and executes python codes, driven by **your prompts**! To have a bite of *rawdog* simply append the flag `--rawdog` *shortcut* `-rd` in *generate/interactive* mode. This introduces a never seen-before feature in the *tgpt ecosystem*. Thanks to [AbanteAI/rawdog](https://github.com/AbanteAI/rawdog) for the idea.
510510

511511
This can be useful in some ways. For instance :
512512

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
setup(
3838
name="python-tgpt",
39-
version="0.4.2",
39+
version="0.4.3",
4040
license="MIT",
4141
author="Smartwa",
4242
maintainer="Smartwa",
@@ -71,7 +71,8 @@
7171
"chatgpt-api",
7272
"llama-api",
7373
"leo",
74-
"openfake",
74+
"llama2",
75+
"blackboxai",
7576
"opengpt",
7677
"koboldai",
7778
"openai",

src/pytgpt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from .utils import appdir
22
import g4f
33

4-
__version__ = "0.4.2"
4+
__version__ = "0.4.3"
55
__author__ = "Smartwa"
66
__repo__ = "https://github.com/Simatwa/python-tgpt"
77

src/pytgpt/console.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1482,6 +1482,7 @@ def generate(
14821482
interpreter,
14831483
):
14841484
"""Generate a quick response with AI"""
1485+
this.clear_history_file(filepath, new)
14851486
bot = Main(
14861487
max_tokens,
14871488
temperature,
@@ -1543,7 +1544,6 @@ def generate(
15431544
# {{stream}} without piped input
15441545
raise Exception(f"No piped input detected ~ {stream_placeholder}")
15451546

1546-
this.clear_history_file(filepath, new)
15471547
prompt = Optimizers.code(prompt) if code else prompt
15481548
prompt = Optimizers.shell_command(prompt) if shell else prompt
15491549
busy_bar.spin_index = (

0 commit comments

Comments
 (0)