Giter Club home page Giter Club logo

Comments (18)

xqdoo00o avatar xqdoo00o commented on July 18, 2024

我用的是微软的azure的endpoint,并使用cloudflare的works转换为类openai的请求,但是输入的密钥不是sw开头的密钥,类似:35ksdifusuqwqweqwfdrg353eqwefs这样的KEY,但是你的这个系统不支持, 我用chtgpt next web等其它几个webui都能正常使用。你做得很好,麻烦看看是哪里问题。

我没用过微软的,微软的endpoint地址是什么,你在OpenAI接口输入框填的是什么

from chatgpt-web.

CattleZoe avatar CattleZoe commented on July 18, 2024

谢谢大佬回复,微软的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.

xqdoo00o avatar xqdoo00o commented on July 18, 2024

谢谢大佬回复,微软的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.

xqdoo00o avatar xqdoo00o commented on July 18, 2024

另外如果说你前几个版本可以用,就这个版本不行的话。那可以改下html代码,把代码里credentials: "omit"都删掉看下有没有用
另外你截图里authorization 请求头里的key不是:开头的呀,是d开头的,key是不是写错了

from chatgpt-web.

CattleZoe avatar CattleZoe commented on July 18, 2024

去掉credentials: "omit" 可以了一下,但是不稳定啊,又不行了

from chatgpt-web.

xqdoo00o avatar xqdoo00o commented on July 18, 2024

你更新下最新版再试试

from chatgpt-web.

xqdoo00o avatar xqdoo00o commented on July 18, 2024

去掉credentials: "omit" 可以了一下,但是不稳定啊,又不行了

是刷新完就不行,还是一直又不行了。开pwa了吗

from chatgpt-web.

CattleZoe avatar CattleZoe commented on July 18, 2024

刷新一下,输入一句话,正常回复,然后报错了,
最新版干脆又恢复原样了提示访问接口失败,请检查接口

from chatgpt-web.

CattleZoe avatar CattleZoe commented on July 18, 2024

在你的https://xqdoo00o.github.io/chatgpt-web/ 这个上测试也是这样

from chatgpt-web.

xqdoo00o avatar xqdoo00o commented on July 18, 2024

刷新一下,输入一句话,正常回复,然后报错了, 最新版干脆又恢复原样了提示访问接口失败,请检查接口

那你对比下正常的和错误的completions的post和options请求,看标头一样吗

from chatgpt-web.

CattleZoe avatar CattleZoe commented on July 18, 2024

要不你给我一个邮箱,我申请一个临时的endpoint和key给你测试一下

from chatgpt-web.

CattleZoe avatar CattleZoe commented on July 18, 2024

已经发给你了,请收!

from chatgpt-web.

xqdoo00o avatar xqdoo00o commented on July 18, 2024

已经发给你了,请收!

收到了,设置里OpenAI接口应该填cf worker的地址吧

from chatgpt-web.

CattleZoe avatar CattleZoe commented on July 18, 2024

是的

from chatgpt-web.

xqdoo00o avatar xqdoo00o commented on July 18, 2024

是的

好了,你用最新版试试,忘了容错了

from chatgpt-web.

CattleZoe avatar CattleZoe commented on July 18, 2024

是的

好了,你用最新版试试,忘了容错了

太棒了,效率真高,高手!!!,ps:那个“检查API额度”的报错也需要修改一下

感谢你的回复!!!

from chatgpt-web.

xqdoo00o avatar xqdoo00o commented on July 18, 2024

是的

好了,你用最新版试试,忘了容错了

太棒了,效率真高,高手!!!,ps:那个“检查API额度”的报错也需要修改一下

感谢你的回复!!!

这个估计是因为你cf worker没转换这几个请求,报404
v1/dashboard/billing/subscription
v1/dashboard/billing/usage
你看下微软的有没有类似接口也转一下

from chatgpt-web.

CattleZoe avatar CattleZoe commented on July 18, 2024

是的

好了,你用最新版试试,忘了容错了

太棒了,效率真高,高手!!!,ps:那个“检查API额度”的报错也需要修改一下
感谢你的回复!!!

这个估计是因为你cf worker没转换这几个请求,报404 v1/dashboard/billing/subscription v1/dashboard/billing/usage 你看下微软的有没有类似接口也转一下

好的,了解了!感谢,可以close了

from chatgpt-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.