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

Open
wisfern opened this issue Apr 17, 2023 · 8 comments
Open

咨询一下部署 #3

wisfern opened this issue Apr 17, 2023 · 8 comments

Comments

@wisfern
Copy link

wisfern commented Apr 17, 2023

老哥,虚心请教一下,你的网站是怎么部署的,我在日本节点部署了一下,也没这么快的速度。

@CNSeniorious000
Copy link
Owner

你说的是产生词的速度吗?那跟部署关系不大,是openai对未绑卡用户的限制。具体见官方文档

We enforce rate limits at the organization level, not user level, based on the specific endpoint used as well as the type of account you have. Rate limits are measured in two ways: RPM (requests per minute) and TPM (tokens per minute).

CHAT
Free trial users 3 RPM 40,000 TPM
Pay-as-you-go users (first 48 hours) 60 RPM 60,000 TPM
Pay-as-you-go users (after 48 hours) 3,500 RPM 90,000 TPM

我部署得比较复杂,我是用Vercel和Netlify请求openai,然后我阿里云的国内的服务器挂日本的代理去请求它,而我的网站是直接连到腾讯云的CDN服务

@lxmicode
Copy link

lxmicode commented Jun 7, 2023

image
目前:变量只设置openAI_key
请问下是什么问题,是服务器网络不知道openAI吗

@CNSeniorious000
Copy link
Owner

键名应该是 OPENAI_API_KEY

@lxmicode
Copy link

lxmicode commented Jun 7, 2023

不好意思打的随意了,键名没错,就设置了一个,但是效果就如上面图片了
image

@CNSeniorious000
Copy link
Owner

你这个图是vim编辑没退出吧

@lxmicode
Copy link

lxmicode commented Jun 7, 2023

我的图片意思是,我环境配置了,只配置了一个OPENAI_API_KEY,会出现下面的错误。
image

@CNSeniorious000
Copy link
Owner

你看那报错 就是说没有找到这个环境变量。

如果你确定你一定是配对了的 那你是不是没有重新build

@lxmicode
Copy link

lxmicode commented Jun 8, 2023

这边采用了docker方式部署,arm镜像,
在 /root/app/ddiu8081_chatgpt/.env 下添加 OPENAI_API_KEY 变量,
启动后页面操作出现上面的图片错误

如下配置:

version: '3'

services:
chatgpt-demo:
image: ddiu8081/chatgpt-demo:latest
container_name: chatgpt-demo
restart: always
ports:
- "8082:3000"
volumes:
- /root/app/ddiu8081_chatgpt/.env:/usr/src/.env

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