Skip to content

Commit

Permalink
chore: clean some codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Soulter committed Jun 7, 2024
1 parent 3191bee commit 6fdd8bf
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/hugchat/hugchat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6fdd8bf

Please sign in to comment.