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

如果要部署在海外VPS上,不想用proxy怎么配置?谢谢! #5

Closed
goldenhawksu opened this issue May 7, 2023 · 22 comments

Comments

@goldenhawksu
Copy link

No description provided.

@xiangsx
Copy link
Owner

xiangsx commented May 7, 2023

那就不用配置

@xiangsx
Copy link
Owner

xiangsx commented May 7, 2023

配置个rapid_api_key即可

@goldenhawksu
Copy link
Author

我的意思是,.env文件里应该怎么定义?
只修改api的值,第一行不用动?

@xiangsx
Copy link
Owner

xiangsx commented May 7, 2023

我的意思是,.env文件里应该怎么定义? 只修改api的值,第一行不用动?

删掉第一行

@goldenhawksu
Copy link
Author

尝试了两种方式,

  1. 不用proxy,删掉.env的第一行,输入以下命令行(docker端口是8080),
    /gpt4free-ts# curl "http:https://127.0.0.1:8080/ask?prompt=hello&model=forefront&gptmodel=gpt-4&resignup=0"
    得到以下回复:
    {"message":"Request failed with status code 403"}

  2. 使用proxy,输入同样命令行,得到回复如下,
    {"message":"Failed to create account! sign email res parse token failed!"}

问题出在那里?

@xiangsx
Copy link
Owner

xiangsx commented May 7, 2023

尝试了两种方式,

  1. 不用proxy,删掉.env的第一行,输入以下命令行(docker端口是8080),
    /gpt4free-ts# curl "http:https://127.0.0.1:8080/ask?prompt=hello&model=forefront&gptmodel=gpt-4&resignup=0"
    得到以下回复:
    {"message":"Request failed with status code 403"}
  2. 使用proxy,输入同样命令行,得到回复如下,
    {"message":"Failed to create account! sign email res parse token failed!"}

问题出在那里?

更新代码,重试 1.不用proxy,然后把返回贴出来看看

@xiangsx
Copy link
Owner

xiangsx commented May 7, 2023

大概率邮箱问题,检查这里有没有订阅

https://rapidapi.com/calvinloveland335703-0p6BxLYIH8f/api/temp-mail44

@goldenhawksu
Copy link
Author

尝试了两种方式,

  1. 不用proxy,删掉.env的第一行,输入以下命令行(docker端口是8080),
    /gpt4free-ts# curl "http:https://127.0.0.1:8080/ask?prompt=hello&model=forefront&gptmodel=gpt-4&resignup=0"
    得到以下回复:
    {"message":"Request failed with status code 403"}
  2. 使用proxy,输入同样命令行,得到回复如下,
    {"message":"Failed to create account! sign email res parse token failed!"}

问题出在那里?

更新代码,重试 1.不用proxy,然后把返回贴出来看看

更新了代码,用proxy方式,订阅了邮件,输入命令行以后得到一个空的回答,像下面这样,正反大括号,空字符串
{}

@xiangsx
Copy link
Owner

xiangsx commented May 7, 2023

更新代码试试

@goldenhawksu
Copy link
Author

更新了刚刚的代码,forefront 和 you 返回都是 {}

@xiangsx
Copy link
Owner

xiangsx commented May 7, 2023

更新代码,resignup传1

@goldenhawksu
Copy link
Author

结果如下,
curl: (18) transfer closed with 2 bytes remaining to read

@kaishxu
Copy link

kaishxu commented May 9, 2023

我也出现了这个问题,有解决办法吗?我也是部署在境外的VPS上

@kaishxu
Copy link

kaishxu commented May 9, 2023

yarn返回“Error: Need apikey for TempMail”

@xiangsx
Copy link
Owner

xiangsx commented May 9, 2023

Update code and retry

@HuanLinOTO
Copy link
Contributor

yarn返回“Error: Need apikey for TempMail”

你翻译一下就知道了...

@xiaoyao20084321
Copy link
Contributor

yarn返回“错误:TempMail需要apikey”

你翻译一下就知道了...

为啥翻译一下就知道了。。

@HuanLinOTO
Copy link
Contributor

yarn返回“错误:TempMail需要apikey”

你翻译一下就知道了...

为啥翻译一下就知道了。。

缺 APIKey 啊

@zhanghongyong123456
Copy link

yarn返回“错误:TempMail需要apikey”

你翻译一下就知道了...

为啥翻译一下就知道了。。

缺 APIKey 啊

大佬你那个项目库怎么用呢,属于新手,完全不懂,能出一个gpt4free-ts关于使用你项目获取api-key相关的教程吗,谢谢大佬

@IdaBruce
Copy link

No description provided.

@ModestyRose
Copy link

Update code and retry

@goldenhawksu
Copy link
Author

用docker部署,和其它人遇到一样的问题,forefront模型不能用了,那也等于没有gpt4可以用了.......

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

8 participants