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

3 分钟内在 Sealos 上一键部署 gpt_academic #993

Open
yangchuansheng opened this issue Jul 26, 2023 · 19 comments
Open

3 分钟内在 Sealos 上一键部署 gpt_academic #993

yangchuansheng opened this issue Jul 26, 2023 · 19 comments
Labels
documentation Improvements or additions to documentation

Comments

@yangchuansheng
Copy link
Contributor

yangchuansheng commented Jul 26, 2023

直接点击下面的按钮跳转到 Sealos 部署界面

如果您是第一次打开 Sealos,需要先注册登录账号

填入自己的 API KEY,如果你使用的是中转 API,需要设置参数 API_URL_REDIRECT 的值。然后点击右上角的「部署应用」。

部署完成后,点击「确认」跳转到详情页面。

进入应用详情页面:

点击右边的日志按钮,即可查看容器的启动日志:

确认启动成功后,点击外网地址即可打开 Web 界面:

如果想修改或添加环境变量,可以点击「变更」:

然后展开「高级设置」,点击「编辑环境变量」:

@binary-husky binary-husky added the documentation Improvements or additions to documentation label Jul 27, 2023
@bbb3n
Copy link

bbb3n commented Aug 10, 2023

sealos上无法设置
‎API_URL_REDIRECT = {"https://api.openai.com/v1/chat/completions": "https://reverse-proxy-url/v1/chat/completions"}
这个参数用来实现替换base url

@xida003
Copy link

xida003 commented Aug 11, 2023

我想用第三方的api,这个可以支持吗,希望大佬解答一下

@bbb3n
Copy link

bbb3n commented Aug 11, 2023

我想用第三方的api,这个可以支持吗,希望大佬解答一下

我上面回复的那个“参数”就是解决这个问题的

@qins
Copy link

qins commented Aug 18, 2023

没想到学术区也能遇到云原生大佬 😄

@yangchuansheng
Copy link
Contributor Author

添加环境变量不行么

@doubletree6
Copy link

添加环境变量不行么

EV的编辑格式是什么,我用VPS上的docker-compose配置的镜像,在yml里也可以调整环境变量,按理来说是和这个原理是一样的,但最后也没成功,我怀疑是我环境变量的格式不对

@doubletree6
Copy link

这是我的格式
API_URL_REDIRECT: ' third-party url '

@yuanj82
Copy link

yuanj82 commented Aug 29, 2023

这个容器服务定价怎么样呢?

@yiiyaa
Copy link

yiiyaa commented Aug 30, 2023

替换url的格式:API_URL_REDIRECT = {"https://api.openai.com/v1/chat/completions": "https://api.xxx.com/v1/chat/completions"}
但是似乎有些插件在这里没有办法使用?比如知识库的构建。

@doubletree6
Copy link

替换url的格式:API_URL_REDIRECT = {"https://api.openai.com/v1/chat/completions": "https://api.xxx.com/v1/chat/completions"} 但是似乎有些插件在这里没有办法使用?比如知识库的构建。

用huggingface吧,可以用第三方api,也免费。

@yuanj82
Copy link

yuanj82 commented Aug 30, 2023

huggingface免费版是需要每48h重启一次吗?免费版可以用多久呢

@HelloTCM
Copy link

HelloTCM commented Nov 4, 2023

sealos如何python pip,请指教

@yangchuansheng
Copy link
Contributor Author

sealos如何python pip,请指教

Python 应用可以参考这篇文档:https://sealos.run/docs/examples/programming-languages/Quick%20installation%20of%20Python%20Apps

@yangchuansheng
Copy link
Contributor Author

sealos上无法设置 ‎API_URL_REDIRECT = {"api.openai.com/v1/chat/completions": "https://reverse-proxy-url/v1/chat/completions"} 这个参数用来实现替换base url

看教程中的最后一张图,可以设置额外的参数

@Alumchen
Copy link

为什么一直报网络错误,但USE_PROXY=False proxies=添加了,请大佬帮帮我

@yangchuansheng
Copy link
Contributor Author

为什么一直报网络错误,但USE_PROXY=False proxies=添加了,请大佬帮帮我

更新模板了,用新模板部署

@RaiderWang
Copy link

[API_KEY] 您的 API_KEY 不满足任何一种已知的密钥格式,请在config文件中修改API密钥之后再运行---其实为什么一定要检查API key格式?很多第三方的key跟open AI 的key格式完全不同,现在部署之后我完全用不了。

@currienew
Copy link

image
为什么看不见答复,小白求解

@Berberyang
Copy link

想问一下大佬,哪些模型的API是可以免费直接在这上面用的啊?我用了Open AI的他说我没有balance是什么意思?

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

No branches or pull requests