Spaces:
Build error
Build error
:zap: [Enhance] Use chrome impoersonate for cffi_requests, and upgrade to v1.2.5
Browse files- configs/config.json +1 -1
- networks/huggingchat_streamer.py +1 -0
configs/config.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"app_name": "HuggingFace LLM API",
|
3 |
-
"version": "1.2.
|
4 |
"host": "0.0.0.0",
|
5 |
"port": 23333
|
6 |
}
|
|
|
1 |
{
|
2 |
"app_name": "HuggingFace LLM API",
|
3 |
+
"version": "1.2.5",
|
4 |
"host": "0.0.0.0",
|
5 |
"port": 23333
|
6 |
}
|
networks/huggingchat_streamer.py
CHANGED
@@ -38,6 +38,7 @@ class HuggingchatRequester:
|
|
38 |
json=request_body,
|
39 |
proxies=PROXIES,
|
40 |
timeout=10,
|
|
|
41 |
)
|
42 |
self.hf_chat_id = res.cookies.get("hf-chat")
|
43 |
if self.hf_chat_id:
|
|
|
38 |
json=request_body,
|
39 |
proxies=PROXIES,
|
40 |
timeout=10,
|
41 |
+
impersonate="chrome",
|
42 |
)
|
43 |
self.hf_chat_id = res.cookies.get("hf-chat")
|
44 |
if self.hf_chat_id:
|