Skip to content

Commit

Permalink
Support streaming APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
yangwenz08 committed Aug 28, 2024
1 parent 5224161 commit b6f04b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kservehelper/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def generate_filepath(filename: str) -> str:
def wrap_generator(g):
def _g():
for i, data in enumerate(g()):
yield json.dumps({"id": i, "data": data}) + "\n"
yield json.dumps({"id": i, "data": data}, ensure_ascii=False) + "\n"

return _g

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

setup(
name="kservehelper",
version="1.2.5",
version="1.2.6",
author="Wenzhuo Yang",
description="A KServe Model Wrapper",
long_description=open("README.md", "r", encoding="utf-8").read(),
Expand Down

0 comments on commit b6f04b4

Please sign in to comment.