diff --git a/src/hugchat/hugchat.py b/src/hugchat/hugchat.py index 3a9ac03..f355cc6 100644 --- a/src/hugchat/hugchat.py +++ b/src/hugchat/hugchat.py @@ -296,7 +296,7 @@ def delete_all_conversations(self) -> None: r = self.session.post( f"{self.hf_base_url}/chat/conversations?/delete", - headers={"Referer": "https://huggingface.co/chat"}, + headers={"Referer": "https://huggingface.co/chat", "Origin": "https://huggingface.co", "Content-Type": "multipart/form-data; boundary=----WebKitFormBoundarywrIEW0Ame78HYisT"}, cookies=self.get_cookies(), allow_redirects=True, files=settings,