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