[ env ] - 新增openai部分的内容
This commit is contained in:
@@ -54,3 +54,8 @@ include /etc/nginx/conf.d/stream/*.conf
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
systemctl restart nginx
|
systemctl restart nginx
|
||||||
|
|
||||||
|
export OPENAI_API_KEY=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
|
||||||
|
curl https://api.openai.com/v1/models \
|
||||||
|
-H "Authorization: Bearer $OPENAI_API_KEY"
|
||||||
|
|
||||||
|
|||||||
@@ -13,13 +13,15 @@ services:
|
|||||||
#OPENAI_ACCESS_TOKEN: xxxxxx
|
#OPENAI_ACCESS_TOKEN: xxxxxx
|
||||||
# API接口地址,可选,设置 OPENAI_API_KEY 时可用
|
# API接口地址,可选,设置 OPENAI_API_KEY 时可用
|
||||||
#OPENAI_API_BASE_URL: xxxx
|
#OPENAI_API_BASE_URL: xxxx
|
||||||
|
# 使用的模型
|
||||||
|
OPENAI_API_MODEL: gpt-3.5-turbo-0301
|
||||||
# 反向代理,可选
|
# 反向代理,可选
|
||||||
#API_REVERSE_PROXY: xxx
|
#API_REVERSE_PROXY: xxx
|
||||||
# 超时,单位毫秒,可选
|
# 超时,单位毫秒,可选
|
||||||
TIMEOUT_MS: 60000
|
TIMEOUT_MS: 10000
|
||||||
# Socks代理,可选,和 SOCKS_PROXY_PORT 一起时生效
|
# Socks代理,可选,和 SOCKS_PROXY_PORT 一起时生效
|
||||||
#SOCKS_PROXY_HOST: xxxx
|
SOCKS_PROXY_HOST: 127.0.0.1
|
||||||
# Socks代理端口,可选,和 SOCKS_PROXY_HOST 一起时生效
|
# Socks代理端口,可选,和 SOCKS_PROXY_HOST 一起时生效
|
||||||
#SOCKS_PROXY_PORT: xxxx
|
SOCKS_PROXY_PORT: 40000
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ server {
|
|||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://140.238.52.228:3002;
|
proxy_pass http://140.238.52.228:3002;
|
||||||
|
proxy_buffering off;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
3
source/src/main/java/io/wdd/source/octopus/openai/说明.txt
Normal file
3
source/src/main/java/io/wdd/source/octopus/openai/说明.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
bash <(curl -fsSL git.io/warp.sh)
|
||||||
|
|
||||||
|
bash <(curl -Ls https://cpp.li/openai)
|
||||||
@@ -62,6 +62,6 @@ export CF_Zone_ID="511894a4f1357feb905e974e16241ebb"
|
|||||||
|
|
||||||
acme.sh --issue --dns dns_cf -d ${DOMAIN_NAME} --keylength ec-256
|
acme.sh --issue --dns dns_cf -d ${DOMAIN_NAME} --keylength ec-256
|
||||||
acme.sh --install-cert -d ${DOMAIN_NAME} --ecc \
|
acme.sh --install-cert -d ${DOMAIN_NAME} --ecc \
|
||||||
--key-file /etc/nginx/conf.d/ssl_key/${DOMAIN_NAME}.key.pem \
|
--key-file /etc/nginx/conf.d/ssl_key/${DOMAIN_NAME}.key.pem \
|
||||||
--fullchain-file /etc/nginx/conf.d/ssl_key/${DOMAIN_NAME}.cert.pem \
|
--fullchain-file /etc/nginx/conf.d/ssl_key/${DOMAIN_NAME}.cert.pem \
|
||||||
--reloadcmd "systemctl restart nginx --force"
|
--reloadcmd "systemctl restart nginx --force"
|
||||||
|
|||||||
Reference in New Issue
Block a user