diff options
author | kqlio67 <kqlio67@users.noreply.github.com> | 2024-11-11 20:18:12 +0100 |
---|---|---|
committer | kqlio67 <kqlio67@users.noreply.github.com> | 2024-11-11 20:18:12 +0100 |
commit | 254228707bf2c2b9b1f0ef55ceca0c775fcc1d7a (patch) | |
tree | 56923e6d96e3f7defa6f904e5ade3be7f0315d22 /g4f | |
parent | Removed provider (g4f/Provider/ChatifyAI.py) (diff) | |
download | gpt4free-254228707bf2c2b9b1f0ef55ceca0c775fcc1d7a.tar gpt4free-254228707bf2c2b9b1f0ef55ceca0c775fcc1d7a.tar.gz gpt4free-254228707bf2c2b9b1f0ef55ceca0c775fcc1d7a.tar.bz2 gpt4free-254228707bf2c2b9b1f0ef55ceca0c775fcc1d7a.tar.lz gpt4free-254228707bf2c2b9b1f0ef55ceca0c775fcc1d7a.tar.xz gpt4free-254228707bf2c2b9b1f0ef55ceca0c775fcc1d7a.tar.zst gpt4free-254228707bf2c2b9b1f0ef55ceca0c775fcc1d7a.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/Provider/HuggingChat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/Provider/HuggingChat.py b/g4f/Provider/HuggingChat.py index 7ebbf570..a3f0157e 100644 --- a/g4f/Provider/HuggingChat.py +++ b/g4f/Provider/HuggingChat.py @@ -83,7 +83,7 @@ class HuggingChat(AbstractProvider, ProviderModelMixin): raise RuntimeError(f"Request failed with status code: {response.status_code}, response: {response.text}") conversationId = response.json().get('conversationId') - response = session.get(f'https://huggingface.co/chat/conversation/{conversationId}/__data.json?x-sveltekit-invalidated=11') + response = session.get(f'https://huggingface.co/chat/conversation/{conversationId}/__data.json?x-sveltekit-invalidated=01') data: list = response.json()["nodes"][1]["data"] keys: list[int] = data[data[0]["messages"]] |