Update app.py
Browse files
app.py
CHANGED
@@ -14,18 +14,16 @@ def create_new_chat(user_id,cookie):
|
|
14 |
|
15 |
payload = json.dumps({"uuid": uuid, "name": ""})
|
16 |
headers = {
|
17 |
-
|
18 |
-
'Accept-Language': 'en-
|
19 |
'Referer': 'https://claude.ai/chats',
|
20 |
'Content-Type': 'application/json',
|
21 |
'Origin': 'https://claude.ai',
|
22 |
-
'DNT': '1',
|
23 |
'Connection': 'keep-alive',
|
24 |
'Cookie': cookie,
|
25 |
'Sec-Fetch-Dest': 'empty',
|
26 |
'Sec-Fetch-Mode': 'cors',
|
27 |
'Sec-Fetch-Site': 'same-origin',
|
28 |
-
'TE': 'trailers'
|
29 |
}
|
30 |
|
31 |
# response = requests.request("POST", url, headers=headers, data=payload)
|
|
|
14 |
|
15 |
payload = json.dumps({"uuid": uuid, "name": ""})
|
16 |
headers = {
|
17 |
+
'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.82',
|
18 |
+
'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',
|
19 |
'Referer': 'https://claude.ai/chats',
|
20 |
'Content-Type': 'application/json',
|
21 |
'Origin': 'https://claude.ai',
|
|
|
22 |
'Connection': 'keep-alive',
|
23 |
'Cookie': cookie,
|
24 |
'Sec-Fetch-Dest': 'empty',
|
25 |
'Sec-Fetch-Mode': 'cors',
|
26 |
'Sec-Fetch-Site': 'same-origin',
|
|
|
27 |
}
|
28 |
|
29 |
# response = requests.request("POST", url, headers=headers, data=payload)
|