Skip to content

Commit

Permalink
1.增加虎皮椒支付。
Browse files Browse the repository at this point in the history
2.同步原版代码。
  • Loading branch information
vual committed Jan 10, 2025
1 parent b501c4f commit b81cecd
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,23 @@
人格保证,所有版本没有任何恶意代码,不会偷key或者泄露key!!!
如果担心,可自行在部署应用的服务器上安装抓包工具,分析每个对外的请求。

### 推广
介绍购买付费版得佣金,无后台版本一个¥30,有后台版本一个¥60。

### 欢迎体验另一个项目[lobe-chat-pro](https://github.com/vual/lobe-chat-pro)
基于lobe-chat,增加了更强大的绘图、音乐、视频面板,支持midjourney、dall-e、suno、luma、runway、快手可灵等,地址:https://github.com/vual/lobe-chat-pro

### 推荐中转接口,[ai.aiiai.top](https://ai.aiiai.top),免去繁杂配置,获取key就可以用。

### 版本
#### 无后台:
- 更新日期:2024.12.26
- 更新日期:2025.01.10
- 版本号:
- 3.9.5,完整功能,需要授权码
- 3.9.6,完整功能,需要授权码
- 3.7.21-arm,arm64版,完整功能,需要授权码
- 3.7.27-ce,社区版(免费版),不需要授权码,功能有限制,详细看后面说明
- **Demo演示地址**
- 参考下面有后台版本的用户端,有一些界面和功能差异,没有登录、套餐列表、用户中心,没有管理端。

#### 有后台版本:
- 更新日期:2024.12.26
- 更新日期:2025.01.10
- 版本号:
- latest
- **Demo演示地址**
Expand Down Expand Up @@ -74,6 +71,7 @@
| | 会话消息 | × | × ||
| 支付方式 | 微信支付 | × | × ||
| | 易支付 | × | × ||
| | 虎皮椒支付 | × | × ||

### 特性(无后台版本):[详细说明](./docs/无后台版本详细功能说明.md)

Expand Down Expand Up @@ -155,14 +153,14 @@
### 无后台版本部署和启动
##### 1.拉取镜像
```shell
docker pull registry.cn-hangzhou.aliyuncs.com/ann-chat/chatgpt-next-web-pro:3.9.5
docker pull registry.cn-hangzhou.aliyuncs.com/ann-chat/chatgpt-next-web-pro:3.9.6
```
##### 2.启动应用
```shell
docker run -d -p 3000:3000 \
-e OPENAI_API_KEY="sk-xxxxxx" \
-e AUTHORIZE_CODE="授权码" \
registry.cn-hangzhou.aliyuncs.com/ann-chat/chatgpt-next-web-pro:3.9.5
registry.cn-hangzhou.aliyuncs.com/ann-chat/chatgpt-next-web-pro:3.9.6
```
- 3000:3000是端口映射,前面的可以自定义,后面的是容器内部端口,不可更改。比如可以改成:3030:3000, 3080:3000
- 如果你有chatgpt中转地址,则加上 -e BASE_URL="https://xxxxxx" \ ,没加这个参数,默认请求到 https://api.openai.com
Expand Down
15 changes: 13 additions & 2 deletions docker/with-backend/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3"
services:
# 用户聊天的web服务
annyun-chat-web:
Expand Down Expand Up @@ -145,6 +144,18 @@ services:
# 易支付配置,支付设备,默认pc,有些易支付平台需要传jump,才会返回支付链接,
#EASY_PAY_DEVICE: pc
#----------易支付配置----------
#----------虎皮椒支付配置----------
# 虎皮椒微信配置
#HPJ_PAY_WX_APP_ID:
#HPJ_PAY_WX_APP_SECRET:
#HPJ_PAY_WX_API_URL: https://api.xunhupay.com/payment/do.html
# 虎皮椒支付宝配置
#HPJ_PAY_ZFB_APP_ID:
#HPJ_PAY_ZFB_APP_SECRET:
#HPJ_PAY_ZFB_API_URL: https://api.dpweixin.com/payment/do.html
# 虎皮椒支付,回调通知地址,即后端管理的地址,比如:https://admin.annyun.cn
#HPJ_PAY_NOTIFY_URL:
#----------虎皮椒支付配置----------
#----------其它配置----------
# 如果需要禁用注册,则设成 true,配合annyun-chat-web里的DISABLE_LOGIN_TAB=2一起使用
#ANNYUN_DISABLE_REGISTER: false
Expand Down Expand Up @@ -190,7 +201,7 @@ services:
ports:
- 8000:8000
environment:
# 如果需要识别图片转成文字描述,目前支持qwen-vl-max,openai的模型请自测
# 以下配置可以不填写,不影响文本内容提取,如果需要识别图片转成文字描述,则填写,目前支持qwen-vl-max,openai的模型请自测
API_KEY: your_api_key_here
BASE_URL: https://api.annyun.cn/v1
MODEL: qwen-vl-max
Expand Down
1 change: 1 addition & 0 deletions docs/有后台版本详细功能说明.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
- ****. **支付**
- 1.**微信支付**:需要申请微信商户,开通微信支付。因为需要关联appId,所以还需要申请小程序或者公众号。
- 2.**易支付**:支持大部分易支付平台,或自建平台。
- 3.**虎皮椒支付**:虎皮椒支付。
- ****. **对接fastgpt知识库**
- 1.先在平台管理里建一个平台,平台名称随意,接口地址那边填fastgpt的根地址。
- 2.然后在模型管理里建模型,模型名称对应fastgpt里建的知识库应用名称。
Expand Down

0 comments on commit b81cecd

Please sign in to comment.