Skip to content

Commit cc4305b

Browse files
committed
bugfixes
1 parent 4f77eba commit cc4305b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/hugchat/hugchat.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ def get_remote_llms(self) -> list:
412412
)
413413

414414
# temporary workaround for #267
415-
text = r.text.split(r'{"type":"chunk","id":1,"data":[[]]}')[0]
415+
text = r.text.split("\n")[0]
416416
data = json.loads(text)["nodes"][0]["data"]
417417
modelsIndices = data[data[0]["models"]]
418418
model_list = []

0 commit comments

Comments
 (0)