caoyunzhou / cocopilot-gpt Goto Github PK
View Code? Open in Web Editor NEWcocopilot-gpt
cocopilot-gpt
反代后,调用域名/v1/chat/completions出现如下错误:
Failed to fetch
Access to fetch at 'https:/xxxxxx/v1/chat/completions' from origin 'https://xxxxxxxx' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
main.js?attr=HvgONv0cy9nUC1rffVhoNhopH-pA_kAEnZaMGDcVZqkitM:4004
POST https://xxxxxx/v1/chat/completions net::ERR_FAILED
fetchCallImpl @ main.js?attr=HvgONv0cy9nUC1rffVhoNhC1lFyWBH-pA_kAEnZaMGDcVZqkitM:4004
fetch @ main.js?attr=HvgONv0cy9nUC1rffVhA_kAEnZaMGDcVZqkitM:4010
wM @ index-5634dda1.js:283
handleSubmit @ index-5634dda1.js:295
b @ index-5634dda1.js:299
uK @ index-5634dda1.js:5
hK @ index-5634dda1.js:5
fK @ index-5634dda1.js:5
RB @ index-5634dda1.js:5
HB @ index-5634dda1.js:5
(anonymous) @ index-5634dda1.js:5
Y9 @ index-5634dda1.js:8
Gv @ index-5634dda1.js:5
$5 @ index-5634dda1.js:5
O5 @ index-5634dda1.js:5
NK @ index-5634dda1.js:5
index-5634dda1.js:299 Failed to fetch
userscript.html?name=%25E7%25BD%2591%25E9%25A1%25B5%25E9%2599%2590%25E5%2588%25B6%25E8%25A7%25A3%25E9%2599%25A4-%25E6%2594%25B9.user.js&id=0f8cfb4c-2615-412b-b56e-f50857e88bd1:844 关闭了快捷键
userscript.html?name=%25E7%25BD%2591%25E9%25A1%25B5%25E9%2599%2590%25E5%2588%25B6%25E8%25A7%25A3%25E9%2599%25A4-%25E6%2594%25B9.user.js&id=0f8cfb4c-2615-412b-b56e-f50857e88bd1:841 Uncaught TypeError: Cannot read properties of undefined (reading 'shortcut')
at HTMLDocument.hotkey (userscript.html?name=%25E7%25BD%2591%25E9%25A1%25B5%25E9%2599%2590%25E5%2588%25B6%25E8%25A7%25A3%25E9%2599%25A4-%25E6%2594%25B9.user.js&id=0f8cfb4c-2615-412b-b56e-f50857e88bd1:841:63)
作者是否可以优化一下输出,避免一次输出好几个字符串,而是一个一个均匀输出,谢谢
经过两个方式部署贵项目测试如下:
1.使用服务器直接docker部署并用ip调用,因nextweb直接调用报错所以加在oneapi渠道里,然后使用nextweb调用oneapi的接口,经测试此方法无流式回复。
2.使用宝塔安装docker并用nginx反代到端口8080,且关闭nginx缓存,再同样加入到oneapi里,调用也无流式回复。
请大佬核实
copilot哪里免费?
在postman调用成功。尝试放到oneapi里通过api调用,但是失败了。想问问大家有没有通过api调用的好办法?
除了gpt-4这个模型以外
其他4.0模型全部都是假的
请问是copilot的原因吗?
还是说本程序把其他模型重定向到3.5了呢?
包括32k,连鲁迅问题都回答不了
只有问他是什么模型能答对
调用速度也是,除了gpt-4这一个模型慢
其他都是飞快的,不知道为什么我部署后也是没有流式输出,nginx缓存已经off了
这些模型都是重定向后的,还是本身就支持这些模型呀
希望作者能够给api支持修改温度值的功能
oneapi渠道添加后
没有了流式输出
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.