Skip to content

Commit 6ca7ee8

Browse files
authored
Merge pull request #285 from STANIZLAVSKY/master
Update hugchat.py
2 parents 20880f3 + 7ada0de commit 6ca7ee8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎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)