@@ -29,15 +29,18 @@ const FAKE_HEADERS = {
29
29
Priority : "u=1, i" ,
30
30
Referer : "https://chat.deepseek.com/" ,
31
31
"Sec-Ch-Ua" :
32
- '"Chromium";v="130 ", "Google Chrome";v="130 ", "Not?A_Brand";v="99"' ,
32
+ '"Chromium";v="133 ", "Google Chrome";v="133 ", "Not?A_Brand";v="99"' ,
33
33
"Sec-Ch-Ua-Mobile" : "?0" ,
34
34
"Sec-Ch-Ua-Platform" : '"Windows"' ,
35
35
"Sec-Fetch-Dest" : "empty" ,
36
36
"Sec-Fetch-Mode" : "cors" ,
37
37
"Sec-Fetch-Site" : "same-origin" ,
38
38
"User-Agent" :
39
- "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" ,
40
- "X-App-Version" : "20241129.1"
39
+ "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36" ,
40
+ "X-App-Version" : "20241129.1" ,
41
+ "X-Client-Locale" : "zh-CN" ,
42
+ "X-Client-Platform" : "web" ,
43
+ "X-Client-Version" : "1.0.0-always" ,
41
44
} ;
42
45
const EVENT_COMMIT_ID = '41e9c7b1' ;
43
46
// 当前IP地址
@@ -155,7 +158,7 @@ async function createSession(model: string, refreshToken: string): Promise<strin
155
158
const result = await axios . post (
156
159
"https://chat.deepseek.com/api/v0/chat_session/create" ,
157
160
{
158
- agent : "chat" ,
161
+ character_id : null
159
162
} ,
160
163
{
161
164
headers : {
0 commit comments