headers补充

This commit is contained in:
Vinlic
2024-03-13 17:31:46 +08:00
parent 2f2f9d0d5d
commit b4e8b489ec
3 changed files with 23 additions and 1 deletions

View File

@@ -16,9 +16,18 @@ const MODEL_NAME = 'kimi';
const ACCESS_TOKEN_EXPIRES = 300;
// 伪装headers
const FAKE_HEADERS = {
'Accept': '*/*',
'Accept-Encoding': 'gzip, deflate, br, zstd',
'Accept-Language': 'zh-CN,zh;q=0.9',
'Origin': 'https://kimi.moonshot.cn',
'Cookie': util.generateCookie(),
'R-Timezone': 'Asia/Shanghai',
'Sec-Ch-Ua': '"Chromium";v="122", "Not(A:Brand";v="24", "Google Chrome";v="122"',
'Sec-Ch-Ua-Mobile': '?0',
'Sec-Ch-Ua-Platform': '"Windows"',
'Sec-Fetch-Dest': 'empty',
'Sec-Fetch-Mode': 'cors',
'Sec-Fetch-Site': 'same-origin',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36'
};
// 文件最大大小