summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/HuggingChat.py
diff options
context:
space:
mode:
authorkqlio67 <kqlio67@users.noreply.github.com>2024-09-12 20:43:28 +0200
committerkqlio67 <kqlio67@users.noreply.github.com>2024-09-12 20:43:28 +0200
commit75bd017023ead0c888e169f66f7622a44670399c (patch)
treeccab4d93da47cac53976e932542de050c143d302 /g4f/Provider/HuggingChat.py
parentBug fixes and improvements to HuggingChat and HuggingFace providers (diff)
downloadgpt4free-75bd017023ead0c888e169f66f7622a44670399c.tar
gpt4free-75bd017023ead0c888e169f66f7622a44670399c.tar.gz
gpt4free-75bd017023ead0c888e169f66f7622a44670399c.tar.bz2
gpt4free-75bd017023ead0c888e169f66f7622a44670399c.tar.lz
gpt4free-75bd017023ead0c888e169f66f7622a44670399c.tar.xz
gpt4free-75bd017023ead0c888e169f66f7622a44670399c.tar.zst
gpt4free-75bd017023ead0c888e169f66f7622a44670399c.zip
Diffstat (limited to 'g4f/Provider/HuggingChat.py')
-rw-r--r--g4f/Provider/HuggingChat.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/g4f/Provider/HuggingChat.py b/g4f/Provider/HuggingChat.py
index 7edb2f9f..8598358d 100644
--- a/g4f/Provider/HuggingChat.py
+++ b/g4f/Provider/HuggingChat.py
@@ -14,7 +14,7 @@ class HuggingChat(AbstractProvider, ProviderModelMixin):
default_model = "meta-llama/Meta-Llama-3.1-70B-Instruct"
models = [
- default_model,
+ 'meta-llama/Meta-Llama-3.1-70B-Instruct',
'CohereForAI/c4ai-command-r-plus-08-2024',
'mistralai/Mixtral-8x7B-Instruct-v0.1',
'NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO',
@@ -77,7 +77,7 @@ class HuggingChat(AbstractProvider, ProviderModelMixin):
response = session.post('https://huggingface.co/chat/conversation', json=json_data)
conversationId = response.json()['conversationId']
- response = session.get(f'https://huggingface.co/chat/conversation/{conversationId}/__data.json?x-sveltekit-invalidated=01',)
+ response = session.get(f'https://huggingface.co/chat/conversation/{conversationId}/__data.json?x-sveltekit-invalidated=11',)
data: list = (response.json())["nodes"][1]["data"]
keys: list[int] = data[data[0]["messages"]]