File size: 1,098 Bytes
432aa19
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import FormData from 'form-data'

import { fetch } from '@/lib/isomorphic'

const formData = new FormData()

const knowledgeRequest = {"imageInfo":{"url":"https://www.baidu.com/img/PCfb_5bf082d29588c07f842ccde3f97243ea.png"},"knowledgeRequest":{"invokedSkills":["ImageById"],"subscriptionId":"Bing.Chat.Multimodal","invokedSkillsRequestData":{"enableFaceBlur":true},"convoData":{"convoid":"51D|BingProdUnAuthenticatedUsers|E3DCA904FF236C67C3450163BCEC64CFF3F618CC8A4AFD75FD518F5ED0ADA080","convotone":"Creative"}}}

formData.append('knowledgeRequest', JSON.stringify(knowledgeRequest))


fetch('https://bing.vcanbb.top/images/kblob',
  {
    method: 'POST',
    body: formData.getBuffer(),
    headers: {
      "sec-ch-ua": "\"Not/A)Brand\";v=\"99\", \"Google Chrome\";v=\"115\", \"Chromium\";v=\"115\"",
      "sec-ch-ua-mobile": "?0",
      "sec-ch-ua-platform": "\"Windows\"",
      "Referer": "https://bing.vcanbb.top/web/index.html",
      "Referrer-Policy": "origin-when-cross-origin",
      ...formData.getHeaders()
    }

  }
).then(res => res.text())
.then(res => console.log('res', res))