Comments (18)
我用的是微软的azure的endpoint,并使用cloudflare的works转换为类openai的请求,但是输入的密钥不是sw开头的密钥,类似:35ksdifusuqwqweqwfdrg353eqwefs这样的KEY,但是你的这个系统不支持, 我用chtgpt next web等其它几个webui都能正常使用。你做得很好,麻烦看看是哪里问题。
我没用过微软的,微软的endpoint地址是什么,你在OpenAI接口输入框填的是什么
from chatgpt-web.
谢谢大佬回复,微软的endpoint是自定义的,类似这样:
https://xxx.openai.azure.com(xxx是自定义的应用名称)
但是我用了cloudflare的works做了转发,可以使任何webui访问azure的endpoint模仿openai的调用而webui不做修改(chatgpt next web等3个以上webui测试通过),openai的接口输入框填的是xxx.xxxx.com经过cloudflare works trigggle自定义的(测试可以用),我怀疑是不是你的系统过滤了非sw开头的密钥,但是azure的密钥不是以sw开头。
PS:你的前几个版本我用azure的endpont是没问题,今天看你升级了,越来越好了,很棒,谢谢你,但是就是有这个问题,
from chatgpt-web.
谢谢大佬回复,微软的endpoint是自定义的,类似这样: https://xxx.openai.azure.com(xxx是自定义的应用名称) 但是我用了cloudflare的works做了转发,可以使任何webui访问azure的endpoint模仿openai的调用而webui不做修改(chatgpt next web等3个以上webui测试通过),openai的接口输入框填的是xxx.xxxx.com经过cloudflare works trigggle自定义的(测试可以用),我怀疑是不是你的系统过滤了非sw开头的密钥,但是azure的密钥不是以sw开头。 PS:你的前几个版本我用azure的endpont是没问题,今天看你升级了,越来越好了,很棒,谢谢你,但是就是有这个问题,
你打开浏览器的开发者工具,找到网络那一栏,提问下,看下completion这个post请求的标头和预览,和你cloudflare workers的域名是不是一致,可以打码截个图看看
from chatgpt-web.
另外如果说你前几个版本可以用,就这个版本不行的话。那可以改下html代码,把代码里credentials: "omit"
都删掉看下有没有用
另外你截图里authorization 请求头里的key不是:开头的呀,是d开头的,key是不是写错了
from chatgpt-web.
去掉credentials: "omit" 可以了一下,但是不稳定啊,又不行了
from chatgpt-web.
你更新下最新版再试试
from chatgpt-web.
去掉credentials: "omit" 可以了一下,但是不稳定啊,又不行了
是刷新完就不行,还是一直又不行了。开pwa了吗
from chatgpt-web.
刷新一下,输入一句话,正常回复,然后报错了,
最新版干脆又恢复原样了提示访问接口失败,请检查接口
from chatgpt-web.
在你的https://xqdoo00o.github.io/chatgpt-web/ 这个上测试也是这样
from chatgpt-web.
刷新一下,输入一句话,正常回复,然后报错了, 最新版干脆又恢复原样了提示访问接口失败,请检查接口
那你对比下正常的和错误的completions的post和options请求,看标头一样吗
from chatgpt-web.
要不你给我一个邮箱,我申请一个临时的endpoint和key给你测试一下
from chatgpt-web.
已经发给你了,请收!
from chatgpt-web.
已经发给你了,请收!
收到了,设置里OpenAI接口应该填cf worker的地址吧
from chatgpt-web.
是的
from chatgpt-web.
是的
好了,你用最新版试试,忘了容错了
from chatgpt-web.
是的
好了,你用最新版试试,忘了容错了
太棒了,效率真高,高手!!!,ps:那个“检查API额度”的报错也需要修改一下
感谢你的回复!!!
from chatgpt-web.
是的
好了,你用最新版试试,忘了容错了
太棒了,效率真高,高手!!!,ps:那个“检查API额度”的报错也需要修改一下
感谢你的回复!!!
这个估计是因为你cf worker没转换这几个请求,报404
v1/dashboard/billing/subscription
v1/dashboard/billing/usage
你看下微软的有没有类似接口也转一下
from chatgpt-web.
是的
好了,你用最新版试试,忘了容错了
太棒了,效率真高,高手!!!,ps:那个“检查API额度”的报错也需要修改一下
感谢你的回复!!!这个估计是因为你cf worker没转换这几个请求,报404 v1/dashboard/billing/subscription v1/dashboard/billing/usage 你看下微软的有没有类似接口也转一下
好的,了解了!感谢,可以close了
from chatgpt-web.
Related Issues (20)
- 大佬可以优化一下Windows、安卓手机的兼容性吗 HOT 7
- 代码块样式问题
- 暴露接口 和 API KEY HOT 1
- I18n support HOT 1
- 想简单的自动保存进数据库怎么弄呢? HOT 1
- 语音功能丢失! HOT 10
- Vercel deployment
- 怎么开启默认角色。自定义一个默认的角色 HOT 1
- 返回的文本不能换行,请问怎么换行实现呢,\n 和<br>标签都没用 HOT 1
- 请教,在后端返回的数据流是完整的输出流,但是页面回答的内容处确中断了输出,没有报错,请问可能是什么原因造成的呢 HOT 7
- 微信打开网页,麦克风输入问题 HOT 3
- 可以付费请作者二开吗 HOT 1
- 引用文件cdn出现问题 HOT 2
- 小白求教我想隐藏左下角那个自定义输入接口的地址应该怎么样改代码呀
- 在vercel.com部署的 api key报错
- 打字机速度调慢后仅生效一次 HOT 1
- css和js提示跨域限制,请问怎么解决? HOT 2
- 大神好!希望能夠支持Gemini Pro HOT 3
- 是否能支持重试?
- 语音输入问题 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatgpt-web.