From 6fdd8bf4e59a040060bf6bd46ae4c800656c0a50 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Fri, 7 Jun 2024 11:07:04 +0800 Subject: [PATCH] chore: clean some codes --- src/hugchat/hugchat.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/hugchat/hugchat.py b/src/hugchat/hugchat.py index 97ad905..41e2b34 100644 --- a/src/hugchat/hugchat.py +++ b/src/hugchat/hugchat.py @@ -726,12 +726,6 @@ def _stream_query( if obj.__contains__("type"): _type = obj["type"] - if _type == "file": - _sha = obj["sha"] - _image_link = f"{self.hf_base_url}/chat/conversation/{conversation}/output/{_sha}" - yield {"type": _type, "image_link": _image_link} - continue - if _type == "finalAnswer": final_answer = obj break_flag = True