Skip to content

Commit 1823c36

Browse files
committed
Incomplete response generation
1 parent 49b9561 commit 1823c36

File tree

6 files changed

+12
-5
lines changed

6 files changed

+12
-5
lines changed

docs/CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,9 @@
7676
## v0.1.3
7777

7878
**What's new?**
79-
- Invalid response - **fixed**
79+
- Invalid response - **fixed**
80+
81+
## v0.1.4
82+
83+
**What's new?**
84+
- Incomplete response - **fixed**

docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<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>
99
-->
1010
<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>
11-
<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>
11+
<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>
1212
<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>
1313
<a href="#"><img alt="Passing" src="https://img.shields.io/static/v1?logo=Docs&label=Docs&message=Passing&color=green"/></a>
1414
<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>
@@ -64,7 +64,7 @@ The name *python-tgpt* draws inspiration from its parent project [tgpt](https://
6464

6565
### Installation
6666

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

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

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="python-tgpt",
15-
version="0.1.3",
15+
version="0.1.4",
1616
license="MIT",
1717
author="Smartwa",
1818
maintainer="Smartwa",

tgpt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from .utils import Conversation
55
from .utils import AwesomePrompts
66

7-
__version__ = "0.1.3"
7+
__version__ = "0.1.4"
88
__author__ = "Smartwa"
99
__repo__ = "https://github.com/Simatwa/python-tgpt"
1010

tgpt/imager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def __init__(
2727
self.image_gen_endpoint = "https://api.craiyon.com/v3"
2828
self.image_down_endpoint = "https://img.craiyon.com/"
2929
self.headers = {
30+
"Accept-Encoding": "gzip, deflate, br",
3031
"Content-Type": "application/json",
3132
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/110.0",
3233
}

tgpt/tgpt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def __init__(
5757
"Content-Type": "application/json",
5858
"accept": "text/event-stream",
5959
"x-brave-key": brave_key,
60+
"accept-language": "en-US,en;q=0.9",
6061
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/110.0",
6162
}
6263
self.__available_optimizers = (

0 commit comments

Comments
 (0)