mirror of
https://github.com/LLM-Red-Team/kimi-free-api.git
synced 2025-10-18 08:14:39 +00:00
headers补充
This commit is contained in:
@@ -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'
|
||||
};
|
||||
// 文件最大大小
|
||||
|
Reference in New Issue
Block a user