Update src/index.js
Browse files- src/index.js +1 -0
src/index.js
CHANGED
@@ -50,6 +50,7 @@ app.post('/hf/v1/chat/completions', async (req, res) => {
|
|
50 |
const checksum = `zo${getRandomIDPro({ dictType: 'max', size: 6 })}${getRandomIDPro({ dictType: 'max', size: 64 })}/${getRandomIDPro({ dictType: 'max', size: 64 })}`
|
51 |
?? process.env['x-cursor-checksum']
|
52 |
?? req.headers['x-cursor-checksum'];
|
|
|
53 |
|
54 |
const response = await fetch('https://api2.cursor.sh/aiserver.v1.AiService/StreamChat', {
|
55 |
method: 'POST',
|
|
|
50 |
const checksum = `zo${getRandomIDPro({ dictType: 'max', size: 6 })}${getRandomIDPro({ dictType: 'max', size: 64 })}/${getRandomIDPro({ dictType: 'max', size: 64 })}`
|
51 |
?? process.env['x-cursor-checksum']
|
52 |
?? req.headers['x-cursor-checksum'];
|
53 |
+
console.log(checksum);
|
54 |
|
55 |
const response = await fetch('https://api2.cursor.sh/aiserver.v1.AiService/StreamChat', {
|
56 |
method: 'POST',
|