Skip to content

Commit

Permalink
data array v1.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
davila7 committed Jan 28, 2024
1 parent ac23281 commit 0b019fe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# Judini Python Package 0.1.7
# Judini Python Package 0.1.8
The Judini Python library provides convenient access to CodeGPT's Judini REST API from any Python 3.7+ application. The library includes type definitions for all requests parameters and response fields, and offers synchronous and asynchronous clients.

## Documentation
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = judini
version = 0.1.7
version = 0.1.8
author = Daniel Avila
author_email = daniel@judini.ai
description = CodeGPT python package
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="judini",
version="0.1.7",
version="0.1.8",
author="Judini Inc.",
author_email="daniel@judini.ai",
description="CodeGPT python package",
Expand Down
4 changes: 2 additions & 2 deletions src/judini/codegpt/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def create(self, agent_id, messages, stream=False):

content_data = ""
if stream is False:
data.decode("utf-8").replace('\n','').split('data: ')[1:]
for jd_str in data:
data_array = data.decode("utf-8").replace('\n','').split('data: ')[1:]
for jd_str in data_array:
if jd_str:
try:
# data: {}
Expand Down

0 comments on commit 0b019fe

Please sign in to comment.