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

[Help] 🤔 有没有方法不让api输出消息来源 #426

Closed chengtx809 closed 3 months ago

chengtx809 commented 3 months ago

Confirmations

Describe the help wanted

api接入到lobechat,nextchat等平台时消息会输出引用来源 如[^1^], 但是实测下来发现大多平台无法正确渲染其脚注, 或者使用场景并不需要 能不能直接关闭api输出消息来源的功能

Steps to behave

使用lobechat调用api

Expected behavior

不输出脚注

Screenshots

No response

Deploy

Vercel

OS & Version

win10

Browser & Version

edge

GoProxiBingAI Version

最新

Additional context

No response

chengtx809 commented 3 months ago

image 补张图

chengtx809 commented 3 months ago

这段时间的测试发现vercel部署lobechat再调本项目api就一切正常,其他平台部署的就会重复输出:(

Harry-zklcdc commented 3 months ago

我当初还特别为这个功能做了适配

chengtx809 commented 3 months ago

大佬,我在你的bingapi演示站使用发现可以正常渲染脚注,我自己fork了一份你的仓库部署出来发现不行。能不能帮忙看看是什么问题,谢谢 image image

Harry-zklcdc commented 3 months ago

有概率输出不出来

chengtx809 commented 2 months ago

佬,能不能指下commit,我看看能不能自己改改,现在我的使用场景不太需要脚注这个功能(哭

chengtx809 commented 2 months ago

找到了脚注是在v1.19.8加入的,但是commit是https://github.com/Harry-zklcdc/go-proxy-bingai/commit/240a3b3207750331a40b7d298523add9ce7b83e3 ,貌似是个人机验证服务器bug修复的,并不是脚注相关的

Harry-zklcdc commented 2 months ago

https://github.com/Harry-zklcdc/bing-lib/blob/491ac86e880c911b50b8e853279f7c48026760c6/chat.go#L734-L745

chengtx809 commented 2 months ago

跪求佬出个控制需不需要脚注的设置项,现在反而用不上脚注,哭死