Coder Social home page Coder Social logo

Comments (20)

ggggarlic avatar ggggarlic commented on May 23, 2024 2

http(s)://copilot-gpt4-service.example.com

为什么是 http(s)://copilot-gpt4-service.example.com? 不是本地起 docker 吗

这是填在 NextChat 设置里的,肯定是填你的服务器的IP地址或者域名

都是本地起的 为啥要域名 不能理解

完全本地部署可以尝试
https://github.com/aaamoon/copilot-gpt4-service/blob/master/example/docker-compose/with-next-chatgpt-web.docker-compose.yaml

from copilot-gpt4-service.

glitterlip avatar glitterlip commented on May 23, 2024 2

出现Failed to fetch是因为请求接口报错了,打开控制台看一看
我自己的错误是接口地址没填协议,默认了请求了https,custom endpoint 勾上 然后openai endpoint 填 http://localhost:8080/ 即可

原来的api/openai不需要这个 填了会405

还有可能会出现 Failed to get authorization from token
这个原因是因为你填错了 拿到的 ghu_XXXXX token应该填到openai api key里 access_code 应该留空

Screen Shot 2024-01-09 at 17 38 01
Screen Shot 2024-01-09 at 17 38 34

from copilot-gpt4-service.

Cassius0924 avatar Cassius0924 commented on May 23, 2024 2

找到解决方法了。

原因同这个回答 # 59 。是由于是 NextChat 是 HTTPS 协议的,而的 CopilotGPT4 是 HTTP 协议的,安全等级不同导致的 Mixed Conten Error

需要将 CopilotGPT4 服务也升级成 HTTPS 协议。如果不支持,可以使用下面方法。

解决方法在见 Vercel 论坛的一个回答,在浏览器中允许 NextChat 页面的不安全内容即可。

CleanShot 2024-01-09 at 20 37 37@2x

CleanShot 2024-01-09 at 20 39 27@2x

from copilot-gpt4-service.

ggggarlic avatar ggggarlic commented on May 23, 2024

点击自定义接口后面的 checkbox.
然后输入 copilot-gpt4-service 的 IP 地址 + 端口.

eg:
http(s)://copilot-gpt4-service.example.com:8080 # 如果 chatgpt-next 开启了 https, 则通过这样的方式必须在部署 copilot-gpt4-service 的时候配置 https.

输入 Token

from copilot-gpt4-service.

zhanghongyong123456 avatar zhanghongyong123456 commented on May 23, 2024

点击自定义接口后面的 checkbox. 然后输入 copilot-gpt4-service 的 IP 地址 + 端口.

eg: http(s)://copilot-gpt4-service.example.com:8080 # 如果 chatgpt-next 开启了 https, 则通过这样的方式必须在部署 copilot-gpt4-service 的时候配置 https.

输入 Token

是的,我配置了,但是出现这个错误:请问BASE_URL 应该设置成什么?
image
我看到这个问题,说是可能是 http和https问题:#59 (comment)

from copilot-gpt4-service.

ggggarlic avatar ggggarlic commented on May 23, 2024

点击自定义接口后面的 checkbox. 然后输入 copilot-gpt4-service 的 IP 地址 + 端口.
eg: http(s)://copilot-gpt4-service.example.com:8080 # 如果 chatgpt-next 开启了 https, 则通过这样的方式必须在部署 copilot-gpt4-service 的时候配置 https.
输入 Token

是的,我配置了,但是出现这个错误:请问BASE_URL 应该设置成什么? image 我看到这个问题,说是可能是 http和https问题:#59 (comment)

填写当前主机的 IP 地址以及启动该服务时监听的端口号即可.

from copilot-gpt4-service.

Tspm1eca avatar Tspm1eca commented on May 23, 2024

点击自定义接口后面的 checkbox. 然后输入 copilot-gpt4-service 的 IP 地址 + 端口.
eg: http(s)://copilot-gpt4-service.example.com:8080 # 如果 chatgpt-next 开启了 https, 则通过这样的方式必须在部署 copilot-gpt4-service 的时候配置 https.
输入 Token

是的,我配置了,但是出现这个错误:请问BASE_URL 应该设置成什么? image 我看到这个问题,说是可能是 http和https问题:#59 (comment)

填写当前主机的 IP 地址以及启动该服务时监听的端口号即可.

借題一問,部署好後,127.0.0.1:8080會顯示什麼嗎?

from copilot-gpt4-service.

funnyzak avatar funnyzak commented on May 23, 2024

请求URL路径 /healthz 会返回:

{"message":"ok"}

点击自定义接口后面的 checkbox. 然后输入 copilot-gpt4-service 的 IP 地址 + 端口.
eg: http(s)://copilot-gpt4-service.example.com:8080 # 如果 chatgpt-next 开启了 https, 则通过这样的方式必须在部署 copilot-gpt4-service 的时候配置 https.
输入 Token

是的,我配置了,但是出现这个错误:请问BASE_URL 应该设置成什么? image 我看到这个问题,说是可能是 http和https问题:#59 (comment)

填写当前主机的 IP 地址以及启动该服务时监听的端口号即可.

借題一問,部署好後,127.0.0.1:8080會顯示什麼嗎?

from copilot-gpt4-service.

Cassius0924 avatar Cassius0924 commented on May 23, 2024

是的,我通过 curl localhost:8080/healthz,测试了服务没问题,Docker logs 也有反应。在容器内部 ping api.github.com 也是正常的。

我是 Docker + Vercel的NextChat,但是就是不能正常使用服务,NextChat也是返回下面错误。

{
  "error": true,
  "message": "Failed to fetch"
}

而且在 NextChat 问问题的时候, Docker logs 没有反应。请问问题出在哪里?

CleanShot 2024-01-08 at 21 38 13@2x

请求URL路径 /healthz 会返回:

{"message":"ok"}

点击自定义接口后面的 checkbox. 然后输入 copilot-gpt4-service 的 IP 地址 + 端口.
eg: http(s)://copilot-gpt4-service.example.com:8080 # 如果 chatgpt-next 开启了 https, 则通过这样的方式必须在部署 copilot-gpt4-service 的时候配置 https.
输入 Token

是的,我配置了,但是出现这个错误:请问BASE_URL 应该设置成什么? image 我看到这个问题,说是可能是 http和https问题:#59 (comment)

填写当前主机的 IP 地址以及启动该服务时监听的端口号即可.

借題一問,部署好後,127.0.0.1:8080會顯示什麼嗎?

from copilot-gpt4-service.

Cassius0924 avatar Cassius0924 commented on May 23, 2024

我刚刚试了一下 Chatbox,一切正常,可以连上GPT4使用。而且 Docker logs 正常响应。

from copilot-gpt4-service.

lifeiteng avatar lifeiteng commented on May 23, 2024

http(s)://copilot-gpt4-service.example.com

为什么是 http(s)://copilot-gpt4-service.example.com? 不是本地起 docker 吗

from copilot-gpt4-service.

Cassius0924 avatar Cassius0924 commented on May 23, 2024

http(s)://copilot-gpt4-service.example.com

为什么是 http(s)://copilot-gpt4-service.example.com? 不是本地起 docker 吗

这是填在 NextChat 设置里的,肯定是填你的服务器的IP地址或者域名

from copilot-gpt4-service.

lifeiteng avatar lifeiteng commented on May 23, 2024

http(s)://copilot-gpt4-service.example.com

为什么是 http(s)://copilot-gpt4-service.example.com? 不是本地起 docker 吗

这是填在 NextChat 设置里的,肯定是填你的服务器的IP地址或者域名

都是本地起的 为啥要域名 不能理解

from copilot-gpt4-service.

lifeiteng avatar lifeiteng commented on May 23, 2024

@zhanghongyong123456 一样的疑问

from copilot-gpt4-service.

Cassius0924 avatar Cassius0924 commented on May 23, 2024

http(s)://copilot-gpt4-service.example.com

为什么是 http(s)://copilot-gpt4-service.example.com? 不是本地起 docker 吗

这是填在 NextChat 设置里的,肯定是填你的服务器的IP地址或者域名

都是本地起的 为啥要域名 不能理解

nextchat不在本地吧

from copilot-gpt4-service.

YoungDan-hero avatar YoungDan-hero commented on May 23, 2024

出现Failed to fetch是因为请求接口报错了,打开控制台看一看 我自己的错误是接口地址没填协议,默认了请求了https,custom endpoint 勾上 然后openai endpoint 填 http://localhost:8080/ 即可

原来的api/openai不需要这个 填了会405

还有可能会出现 Failed to get authorization from token 这个原因是因为你填错了 拿到的 ghu_XXXXX token应该填到openai api key里 access_code 应该留空

Screen Shot 2024-01-09 at 17 38 01 Screen Shot 2024-01-09 at 17 38 34

我也是这样配置的,依旧报这样:
image
image

from copilot-gpt4-service.

aaamoon avatar aaamoon commented on May 23, 2024

@YoungDan-hero 这个报错一般是token过期或者账号没开通copilot返回的

from copilot-gpt4-service.

YoungDan-hero avatar YoungDan-hero commented on May 23, 2024

@YoungDan-hero 这个报错一般是token过期或者账号没开通copilot返回的

好的

from copilot-gpt4-service.

Guanyuansheng avatar Guanyuansheng commented on May 23, 2024

我刚刚试了一下 Chatbox,一切正常,可以连上GPT4使用。而且 Docker logs 正常响应。

大佬,想问下chatbox是如何使用的?没找到在哪输入API和token。。

from copilot-gpt4-service.

qyaaaa avatar qyaaaa commented on May 23, 2024

http://localhost:8080/

出现Failed to fetch是因为请求接口报错了,打开控制台看一看 我自己的错误是接口地址没填协议,默认了请求了https,custom endpoint 勾上 然后openai endpoint 填 http://localhost:8080/ 即可

原来的api/openai不需要这个 填了会405

还有可能会出现 Failed to get authorization from token 这个原因是因为你填错了 拿到的 ghu_XXXXX token应该填到openai api key里 access_code 应该留空

Screen Shot 2024-01-09 at 17 38 01 Screen Shot 2024-01-09 at 17 38 34

有用,感谢

from copilot-gpt4-service.

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.