Skip to content

Commit d280816

Browse files
authored
Merge pull request #285 from STANIZLAVSKY/master
Update hugchat.py
2 parents fa842b8 + 38b941a commit d280816

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/hugchat/hugchat.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@ def delete_all_conversations(self) -> None:
298298

299299
settings = {"": ("", "")}
300300

301-
r = self.session.post(
302-
f"{self.hf_base_url}/chat/conversations?/delete",
301+
r = self.session.delete(
302+
f"{self.hf_base_url}/chat/api/conversations/",
303303
headers={"Referer": "https://huggingface.co/chat", "Origin": "https://huggingface.co", "Content-Type": "multipart/form-data; boundary=----WebKitFormBoundarywrIEW0Ame78HYisT"},
304304
cookies=self.get_cookies(),
305305
allow_redirects=True,
@@ -838,4 +838,4 @@ def chat(
838838
web_search=web_search,
839839
conversation=conversation
840840
)
841-
return msg
841+
return msg

0 commit comments

Comments
 (0)