Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] #48

Closed
Chinaduanyun opened this issue Oct 12, 2023 · 40 comments
Closed

[Bug] #48

Chinaduanyun opened this issue Oct 12, 2023 · 40 comments

Comments

@Chinaduanyun
Copy link

image docker部署时报错
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug]

image Error when deploying docker

@Hk-Gosuto
Copy link
Owner

提供一下部署的命令以及环境,我使用以下方式部署并没有出现你的错误

docker run --rm -p 3000:3000 \
   -e OPENAI_API_KEY="sk-xxxx" \
   -e CODE="111111111" \
   gosuto/chatgpt-next-web-langchain

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Provide the deployment command and environment. I deployed using the following method and your error did not occur.

docker run --rm -p 3000:3000 \
   -e OPENAI_API_KEY="sk-xxxx" \
   -e CODE="111111111" \
   gosuto/chatgpt-next-web-langchain

@Chinaduanyun
Copy link
Author

Chinaduanyun commented Oct 12, 2023 via email

@Chinaduanyun
Copy link
Author

Chinaduanyun commented Oct 12, 2023 via email

@Chinaduanyun
Copy link
Author

image 屏幕截图 2023-10-12 180424

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


image 屏幕截图 2023-10-12 180424

@Hk-Gosuto
Copy link
Owner

我使用群晖尝试部署了一次,也是没问题的。
我看你的报错信息其实并不是程序本身的问题,chatgpt_web 是你的容器名,错误信息是无法通过 dns 找到这个主机名的地址,你可以试着换一个容器名。
最好也检查一下 PROXY_URL 这个环境变量配置的是否有误。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


I tried deploying it once using Synology, and it was no problem.
I think your error message is not actually a problem with the program itself. chatgpt_web is your container name. The error message is that the address of this host name cannot be found through dns. You can try changing the container name.
It is also best to check whether the PROXY_URL environment variable is configured incorrectly.

@Chinaduanyun
Copy link
Author

Chinaduanyun commented Oct 12, 2023 via email

@Chinaduanyun
Copy link
Author

image

@Chinaduanyun
Copy link
Author

我重新尝试配置环境变量后依然是同样的错误 不知道是否可以提供群晖部署的教程 也可以帮助后来者方便部署 感谢

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


I still got the same error after trying to configure the environment variables again. I wonder if you can provide a tutorial on Synology deployment, which can also help latecomers to facilitate deployment. Thank you

@Hk-Gosuto
Copy link
Owner

你的 base_url 的配置是对的,建议你开启群晖的 ssh 功能后直接使用命令部署,看你的日志可能还有大小写的问题,也可以全使用小写试试。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Your base_url configuration is correct. It is recommended that you enable Synology's ssh function and directly use the command to deploy. There may be a case problem in your logs. You can also try using all lowercase letters.

@Chinaduanyun
Copy link
Author

Chinaduanyun commented Oct 12, 2023 via email

@Chinaduanyun
Copy link
Author

你的 base_url 的配置是对的,建议你开启群晖的 ssh 功能后直接使用命令部署,看你的日志可能还有大小写的问题,也可以全使用小写试试。

你好 我根据原本下的问题找到了解决方法 分享一下
ChatGPTNextWeb#1556 (comment)

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Your base_url configuration is correct. It is recommended that you enable Synology's ssh function and then directly use the command to deploy. There may be a case problem in your logs. You can also try using all lowercase letters.

Hello, I found a solution based on the original question. Share it.
ChatGPTNextWeb#1556 (comment)

@Chinaduanyun
Copy link
Author

你的 base_url 的配置是对的,建议你开启群晖的 ssh 功能后直接使用命令部署,看你的日志可能还有大小写的问题,也可以全使用小写试试。

想再请问一下 PROXY_URL 是在api无法请求api.openai.com时使用吗 如果我使用了转代理的请求平台(api.chatanywhere.com.cn) 是否需要代理

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Your base_url configuration is correct. It is recommended that you enable Synology's ssh function and then directly use the command to deploy. There may be a case problem in your logs. You can also try using all lowercase letters.

I would like to ask again whether PROXY_URL is used when the api cannot request api.openai.com. If I use the proxy request platform (api.chatanywhere.com.cn), do I need a proxy?

@Hk-Gosuto
Copy link
Owner

指定 BASE_URL 一般就不需要配置 PROXY_URL 了,除非你使用的插件需要代理。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Specifying BASE_URL generally does not require configuring PROXY_URL, unless the plug-in you use requires a proxy.

@Chinaduanyun
Copy link
Author

那很奇怪 我请求了没有回复
image
image
现在使用的Base_URL是运作正常的

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


That's weird. I asked and got no reply.
image
image
The Base_URL used now is functioning normally

@Hk-Gosuto
Copy link
Owner

检查下你的容器日志有没有错误信息

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Check your container logs for error messages

@Chinaduanyun
Copy link
Author

你好 这个是日志 敏感信息已经处理 麻烦将后缀改为html方便查看 报错是。。。生成很多数字

ChatGPT_Web.txt

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Hello, this is a log. Sensitive information has been processed. Please change the suffix to html for easier viewing. The error is reported. . . generate a lot of numbers

ChatGPT_Web.txt

@Hk-Gosuto
Copy link
Owner

你的 BASE_URL 有问题,日志中的显示:[Base Url] https://api.openai.com。
是不是在页面的设置中又填了一次 Api Key?如果要使用环境变量的 BASE_URL 只填写访问密码就可以。
你也可以不配置环境变量的 BASE_URL,而是直接在界面中配置 接口地址 和 Api Key。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


There is a problem with your BASE_URL, as shown in the log: [Base Url] https://api.openai.com.
Have you filled in the Api Key again in the page settings? If you want to use the BASE_URL of the environment variable, just fill in the access password.
You can also configure the interface address and Api Key directly in the interface without configuring the BASE_URL of the environment variable.

@Chinaduanyun
Copy link
Author

再次感谢您的耐心解答 目前插件1已经可用 插件三
image
是这样的情况
插件4无法做到回复

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Thank you again for your patient answer. Currently plug-in 1 is available and plug-in 3 is available.
image
This is the case
Plugin 4 cannot reply

@Hk-Gosuto
Copy link
Owner

你的 prompt 应该不太对,我猜你是直接让 gpt 去百度搜索吧?
正确的做法是根据插件的描述,使用 prompt 去引导 gpt 使用哪个插件,我举个例子:
所有搜索引擎插件的描述都是 a search engine. useful for when you need to answer questions about current events. input should be a search query. ,你只需要在 prompt 中包含类似帮我搜索一下,帮我使用搜索引擎检索之类的关键字就可以,而不需要指定百度或者谷歌,因为在插件中也没有描述这些。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Your prompt is probably wrong. I guess you just asked gpt to search on Baidu directly?
The correct approach is to use prompt to guide gpt which plug-in to use according to the plug-in description. Let me give you an example:
The description of all search engine plug-ins is a search engine. useful for when you need to answer questions about current events. input should be a search query., you only need to include something like help me search in the prompt, help me use it Keywords such as search engine retrieval are enough, and there is no need to specify Baidu or Google, because these are not described in the plug-in.

@Chinaduanyun
Copy link
Author

Chinaduanyun commented Oct 13, 2023 via email

@Chinaduanyun
Copy link
Author

Chinaduanyun commented Oct 13, 2023 via email

@Chinaduanyun
Copy link
Author

Chinaduanyun commented Oct 13, 2023 via email

@Hk-Gosuto
Copy link
Owner

webdav 代码与原版是一致的,有时候测试失败但是可以正常同步,可以在去原版的仓库提 issues。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


The webdav code is consistent with the original version. Sometimes the test fails but can be synchronized normally. You can go to the original warehouse to raise issues.

@Chinaduanyun
Copy link
Author

Chinaduanyun commented Oct 13, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants