diff options
Diffstat (limited to 'g4f/Provider')
-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"]] |