Skip to content

Commit 11aa3f7

Browse files
committed
- Busy bar index bug **fixed** - *(Console)*
- Other minor fixed. - Version count increase - v0.0.3
1 parent c547d58 commit 11aa3f7

File tree

5 files changed

+17
-10
lines changed

5 files changed

+17
-10
lines changed

docs/CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,10 @@
1010
- Enhanced response generation
1111
- Prompt optimizers added - *[code, shell_command]*
1212
- Prompt optimizers added - *Console*
13-
- Clear console - *Console*
13+
- Clear console - *Console*
14+
15+
## v0.0.3
16+
17+
**What's new?**
18+
- Busy bar index bug **fixed** - *(Console)*
19+
- Other minor fixed.

docs/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<a href="https://github.com/Simatwa/tgpt2/actions/workflows/python-test.yml"><img src="https://github.com/Simatwa/tgpt2/actions/workflows/python-test.yml/badge.svg" alt="Python Test"/></a>
66
-->
77
<a href="LICENSE"><img alt="License" src="https://img.shields.io/static/v1?logo=GPL&color=Blue&message=MIT&label=License"/></a>
8-
<a href="https://pypi.org/project/tgpt2"><img alt="PyPi" src="https://img.shields.io/static/v1?logo=pypi&label=Pypi&message=v0.0.2&color=green"/></a>
8+
<a href="https://pypi.org/project/tgpt2"><img alt="PyPi" src="https://img.shields.io/static/v1?logo=pypi&label=Pypi&message=v0.0.3&color=green"/></a>
99
<a href="https://github.com/psf/black"><img alt="Black" src="https://img.shields.io/static/v1?logo=Black&label=Code-style&message=Black"/></a>
1010
<a href="#"><img alt="Passing" src="https://img.shields.io/static/v1?logo=Docs&label=Docs&message=Passing&color=green"/></a>
1111
<a href="https://github.com/Simatwa/tgpt2/actions/workflows/python-package.yml"><img src="https://github.com/Simatwa/tgpt2/actions/workflows/python-package.yml/badge.svg"/></a>
@@ -139,13 +139,13 @@ for value in resp:
139139
print(value)
140140
# Output
141141
"""
142-
{'completion': "I'm so", 'stop_reason': None, 'truncated': False, 'stop': None, 'model': 'llama-2-13b-chat', 'log_id': 'cmpl-3NmRt5A5Djqo2jXtXLBwJ2', 'exception': None}
142+
{'completion': "I'm so", 'stop_reason': None, 'truncated': False, 'stop': None, 'model': 'llama-2-13b-chat', 'log_id': 'cmpl-3NmRt5A5Djqo2jXtXLBwxx', 'exception': None}
143143
144-
{'completion': "I'm so excited to share with.", 'stop_reason': None, 'truncated': False, 'stop': None, 'model': 'llama-2-13b-chat', 'log_id': 'cmpl-3NmRt5A5Djqo2jXtXLBwJ2', 'exception': None}
144+
{'completion': "I'm so excited to share with.", 'stop_reason': None, 'truncated': False, 'stop': None, 'model': 'llama-2-13b-chat', 'log_id': 'cmpl-3NmRt5A5Djqo2jXtXLBwxx', 'exception': None}
145145
146-
{'completion': "I'm so excited to share with you the incredible ", 'stop_reason': None, 'truncated': False, 'stop': None, 'model': 'llama-2-13b-chat', 'log_id': 'cmpl-3NmRt5A5Djqo2jXtXLBwJ2', 'exception': None}
146+
{'completion': "I'm so excited to share with you the incredible ", 'stop_reason': None, 'truncated': False, 'stop': None, 'model': 'llama-2-13b-chat', 'log_id': 'cmpl-3NmRt5A5Djqo2jXtXLBwxx', 'exception': None}
147147
148-
{'completion': "I'm so excited to share with you the incredible experiences...", 'stop_reason': None, 'truncated': False, 'stop': None, 'model': 'llama-2-13b-chat', 'log_id': 'cmpl-3NmRt5A5Djqo2jXtXLBwJ2', 'exception': None}
148+
{'completion': "I'm so excited to share with you the incredible experiences...", 'stop_reason': None, 'truncated': False, 'stop': None, 'model': 'llama-2-13b-chat', 'log_id': 'cmpl-3NmRt5A5Djqo2jXtXLBwxx', 'exception': None}
149149
"""
150150
```
151151

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
setup(
1414
name="tgpt2",
15-
version="0.0.2",
15+
version="0.0.3",
1616
license="MIT",
1717
author="Smartwa",
1818
maintainer="Smartwa",

tgpt2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from .tgpt2 import TGPT
22
from .imager import Imager
33

4-
__version__ = "0.0.2"
4+
__version__ = "0.0.3"
55
__author__ = "Smartwa"
66
__repo__ = "https://github.com/Simatwa/tgpt2"
77

tgpt2/console.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ def do_settings(self, line):
215215
self.prettify = click.confirm(
216216
"\nPrettify markdown response", default=self.prettify
217217
)
218+
busy_bar.spin_index = click.prompt('Spin bar index [0:/, 1:■█■■■, 2:⣻]', default=busy_bar.spin_index,type=click.IntRange(0,2))
218219
self.color = click.prompt("Response stdout font color", default=self.color)
219220

220221
@busy_bar.run(help="System error")
@@ -450,7 +451,7 @@ def interactive(
450451
):
451452
"""Chat with AI interactively"""
452453
bot = Main(max_tokens, temperature, top_k, top_p, model, brave_key, timeout)
453-
busy_bar.index = busy_bar_index
454+
busy_bar.spin_index = busy_bar_index
454455
bot.code_theme = code_theme
455456
bot.color = color
456457
bot.prettify = prettify
@@ -542,7 +543,7 @@ def generate(
542543
):
543544
"""Generate a quick response with AI"""
544545
bot = Main(max_tokens, temperature, top_k, top_p, model, brave_key, timeout)
545-
busy_bar.index = busy_bar_index
546+
busy_bar.spin_index = busy_bar_index
546547
bot.code_theme = code_theme
547548
bot.color = color
548549
bot.prettify = prettify

0 commit comments

Comments
 (0)