mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-23 11:02:40 +03:00
fix(g4f/Provider/HuggingChat.py): update conversation data request parameter
This commit is contained in:
parent
19af1654cd
commit
254228707b
@ -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"]]
|
||||
|
Loading…
Reference in New Issue
Block a user