返回提交历史
Modified
g4f/Provider/HuggingChat.py
+1
-1
XFEstudio/gpt4free
fix(g4f/Provider/HuggingChat.py): update conversation data request parameter
25422870
代码差异
1 个文件
+1
-1
@@ -83,7 +83,7 @@ class HuggingChat(AbstractProvider, ProviderModelMixin):
83
83
raise RuntimeError(f"Request failed with status code: {response.status_code}, response: {response.text}")
84
84
85
85
conversationId = response.json().get('conversationId')
86
response = session.get(f'https://huggingface.co/chat/conversation/{conversationId}/__data.json?x-sveltekit-invalidated=11')
86
response = session.get(f'https://huggingface.co/chat/conversation/{conversationId}/__data.json?x-sveltekit-invalidated=01')
87
87
88
88
data: list = response.json()["nodes"][1]["data"]
89
89
keys: list[int] = data[data[0]["messages"]]