Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove 'hostname' property from WebSearchSource #218

Merged
merged 1 commit into from
May 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/hugchat/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@
class WebSearchSource:
title: str
link: str
hostname: str

def __str__(self):
return json.dumps({
"title": self.title,
"link": self.link,
"hostname": self.hostname,
})


Expand Down Expand Up @@ -112,7 +110,6 @@ def __next__(self) -> dict:
wss = WebSearchSource()
wss.title = source["title"]
wss.link = source["link"]
wss.hostname = source["hostname"]
self.web_search_sources.append(wss)
elif "messageType" in a:
message_type: str = a["messageType"]
Expand Down