Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -124,9 +124,7 @@ DEFAULT_HEADERS = {
|
|
124 |
'Connection': 'keep-alive',
|
125 |
'Origin': 'https://grok.com',
|
126 |
'Priority': 'u=1, i',
|
127 |
-
'Sec-Ch-Ua': '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"',
|
128 |
'Sec-Ch-Ua-Mobile': '?0',
|
129 |
-
'Sec-Ch-Ua-Platform': '"Windows"',
|
130 |
'Sec-Fetch-Dest': 'empty',
|
131 |
'Sec-Fetch-Mode': 'cors',
|
132 |
'Sec-Fetch-Site': 'same-origin',
|
@@ -969,10 +967,7 @@ def chat_completions():
|
|
969 |
response = curl_requests.post(
|
970 |
f"{CONFIG['API']['BASE_URL']}/rest/app-chat/conversations/new",
|
971 |
headers={
|
972 |
-
|
973 |
-
"Baggage": "sentry-public_key=b311e0f2690c81f25e2c4cf6d4f7ce1c",
|
974 |
-
"Content-Type": "text/plain;charset=UTF-8",
|
975 |
-
"Connection": "keep-alive",
|
976 |
"Cookie": CONFIG["API"]["SIGNATURE_COOKIE"]
|
977 |
},
|
978 |
data=json.dumps(request_payload),
|
|
|
124 |
'Connection': 'keep-alive',
|
125 |
'Origin': 'https://grok.com',
|
126 |
'Priority': 'u=1, i',
|
|
|
127 |
'Sec-Ch-Ua-Mobile': '?0',
|
|
|
128 |
'Sec-Fetch-Dest': 'empty',
|
129 |
'Sec-Fetch-Mode': 'cors',
|
130 |
'Sec-Fetch-Site': 'same-origin',
|
|
|
967 |
response = curl_requests.post(
|
968 |
f"{CONFIG['API']['BASE_URL']}/rest/app-chat/conversations/new",
|
969 |
headers={
|
970 |
+
**DEFAULT_HEADERS,
|
|
|
|
|
|
|
971 |
"Cookie": CONFIG["API"]["SIGNATURE_COOKIE"]
|
972 |
},
|
973 |
data=json.dumps(request_payload),
|