From 254228707bf2c2b9b1f0ef55ceca0c775fcc1d7a Mon Sep 17 00:00:00 2001 From: kqlio67 Date: Mon, 11 Nov 2024 21:18:12 +0200 Subject: fix(g4f/Provider/HuggingChat.py): update conversation data request parameter --- g4f/Provider/HuggingChat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"]] -- cgit v1.2.3