Persarce commited on
Commit
fb84c5a
·
verified ·
1 Parent(s): cb78fc9

Update src/index.js

Browse files
Files changed (1) hide show
  1. 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',