Skip to content

Commit

Permalink
Incomplete response generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Simatwa committed Jan 6, 2024
1 parent 49b9561 commit 1823c36
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
7 changes: 6 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,9 @@
## v0.1.3

**What's new?**
- Invalid response - **fixed**
- Invalid response - **fixed**

## v0.1.4

**What's new?**
- Incomplete response - **fixed**
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<a href="https://github.com/Simatwa/python-tgpt/actions/workflows/python-test.yml"><img src="https://github.com/Simatwa/python-tgpt/actions/workflows/python-test.yml/badge.svg" alt="Python Test"/></a>
-->
<a href="https://github.com/Simatwa/python-tgpt/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/static/v1?logo=GPL&color=Blue&message=MIT&label=License"/></a>
<a href="https://pypi.org/project/python-tgpt"><img alt="PyPi" src="https://img.shields.io/static/v1?logo=pypi&label=Pypi&message=v0.1.3&color=green"/></a>
<a href="https://pypi.org/project/python-tgpt"><img alt="PyPi" src="https://img.shields.io/static/v1?logo=pypi&label=Pypi&message=v0.1.4&color=green"/></a>
<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>
<a href="#"><img alt="Passing" src="https://img.shields.io/static/v1?logo=Docs&label=Docs&message=Passing&color=green"/></a>
<a href="https://github.com/Simatwa/python-tgpt/actions/workflows/python-package.yml"><img src="https://github.com/Simatwa/python-tgpt/actions/workflows/python-package.yml/badge.svg"/></a>
Expand Down Expand Up @@ -64,7 +64,7 @@ The name *python-tgpt* draws inspiration from its parent project [tgpt](https://

### Installation

Download binaries for your system from [here.](https://github.com/Simatwa/python-tgpt/releases/tag/v0.1.3)
Download binaries for your system from [here.](https://github.com/Simatwa/python-tgpt/releases/latest/)

Alternatively, you can install non-binaries. *(Recommended)*

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

setup(
name="python-tgpt",
version="0.1.3",
version="0.1.4",
license="MIT",
author="Smartwa",
maintainer="Smartwa",
Expand Down
2 changes: 1 addition & 1 deletion tgpt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from .utils import Conversation
from .utils import AwesomePrompts

__version__ = "0.1.3"
__version__ = "0.1.4"
__author__ = "Smartwa"
__repo__ = "https://github.com/Simatwa/python-tgpt"

Expand Down
1 change: 1 addition & 0 deletions tgpt/imager.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def __init__(
self.image_gen_endpoint = "https://api.craiyon.com/v3"
self.image_down_endpoint = "https://img.craiyon.com/"
self.headers = {
"Accept-Encoding": "gzip, deflate, br",
"Content-Type": "application/json",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/110.0",
}
Expand Down
1 change: 1 addition & 0 deletions tgpt/tgpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def __init__(
"Content-Type": "application/json",
"accept": "text/event-stream",
"x-brave-key": brave_key,
"accept-language": "en-US,en;q=0.9",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/110.0",
}
self.__available_optimizers = (
Expand Down

0 comments on commit 1823c36

Please sign in to comment.