Harry-zklcdc / go-proxy-bingai

用 Vue3 和 Go 搭建的微软 New Bing 演示站点,拥有一致的 UI 体验,支持 ChatGPT 提示词,支持 API 调用,国内可用。
https://www.b1ng.chat
MIT License
4.17k stars 6.36k forks source link

高频垃圾请求拦截 #433

Closed jianjianai closed 3 months ago

jianjianai commented 3 months ago

拦截掉大量用于统计的高频垃圾请求,减少 80% workers 请求次数消耗。

干干净净,再见垃圾请求。 image

codesandbox[bot] commented 3 months ago

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders
Open Preview

vercel[bot] commented 3 months ago

@jianjianai is attempting to deploy a commit to the harryzklcdc's projects Team on Vercel.

A member of the Team first needs to authorize it.

Harry-zklcdc commented 3 months ago

修改这一行配置即可

https://github.com/Harry-zklcdc/go-proxy-bingai/blob/e9c79dda34659683015ff34951b67f8cceea9fed/frontend/public/js/bing/chat/global.js#L224

jianjianai commented 3 months ago

原来早就有了😂,有配置文件我却不知道