Skip to content

Commit

Permalink
1.增加参数SEND_IMG_URL=,控制vision模型发送图片时是发送base64还是url,默认发送base64,如果要发送url…
Browse files Browse the repository at this point in the history
…,则设置SEND_IMG_URL=1,前提是配置了文件存储,才会有url。

2.修正消息渲染问题。
3.同步原版next-web代码。
  • Loading branch information
vual committed Mar 22, 2024
1 parent a6e7c03 commit 26f46e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,14 @@
### 启动
##### 1.拉取镜像
```shell
docker pull registry.cn-hangzhou.aliyuncs.com/ann-chat/chatgpt-next-web-pro:3.7.11
docker pull registry.cn-hangzhou.aliyuncs.com/ann-chat/chatgpt-next-web-pro:3.7.12
```
##### 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.7.11
registry.cn-hangzhou.aliyuncs.com/ann-chat/chatgpt-next-web-pro:3.7.12
```
- 3000:3000是端口映射,前面的可以自定义,后面的是容器内部端口,不可更改。比如可以改成:3030:3000, 3080:3000
- 如果你有chatgpt中转地址,则加上 -e BASE_URL="https://xxxxxx" \ ,没加这个参数,默认请求到 https://api.openai.com
Expand Down

0 comments on commit 26f46e9

Please sign in to comment.