Unverified Commit 2c5df5d2 authored by OlivierDehaene's avatar OlivierDehaene Committed by GitHub
Browse files

fix(python-client): stream not set on the sync client (#109)

parent 5fd2dcb5
...@@ -52,7 +52,7 @@ print(text) ...@@ -52,7 +52,7 @@ print(text)
# ' Rayleigh scattering' # ' Rayleigh scattering'
``` ```
### Hugging Fae Inference Endpoint usage ### Hugging Face Inference Endpoint usage
```python ```python
from text_generation import Client from text_generation import Client
......
[tool.poetry] [tool.poetry]
name = "text-generation" name = "text-generation"
version = "0.2.0" version = "0.2.1"
description = "Hugging Face Text Generation Python Client" description = "Hugging Face Text Generation Python Client"
license = "Apache-2.0" license = "Apache-2.0"
authors = ["Olivier Dehaene <olivier@huggingface.co>"] authors = ["Olivier Dehaene <olivier@huggingface.co>"]
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
__version__ = "0.2.0" __version__ = "0.2.1"
from text_generation.client import Client, AsyncClient from text_generation.client import Client, AsyncClient
from text_generation.inference_api import InferenceAPIClient, InferenceAPIAsyncClient from text_generation.inference_api import InferenceAPIClient, InferenceAPIAsyncClient
...@@ -191,7 +191,7 @@ class Client: ...@@ -191,7 +191,7 @@ class Client:
json=request.dict(), json=request.dict(),
headers=self.headers, headers=self.headers,
timeout=self.timeout, timeout=self.timeout,
stream=False, stream=True,
) )
if resp.status_code != 200: if resp.status_code != 200:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment