Skip to content

Commit

Permalink
Merge pull request #33 from dlimeng/dev
Browse files Browse the repository at this point in the history
fix deploy markdown
  • Loading branch information
dlimeng authored Aug 8, 2023
2 parents 1fc8430 + 6b7e9fe commit 041d236
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 3 deletions.
15 changes: 14 additions & 1 deletion docs/deployment/deployment-docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,20 @@ docker-compose up -d

```

### 2.3 Accessing Services
### 2.3 Modify the database table information, modify the table solidui_model_type, token and baseurl fields (supported after version 0.2.0)

token is the model API token
baseurl is the base address of the model API, for example: https://api.openai.com (this is the address of openai abroad), https://api.chatanywhere.com.cn (the address of openai's domestic agent), http://ip: port (chatGLM address)

```shell script
# Enter the mysql created by Docker-Compose
mysql -h ip -u root -p
use solidui;
update solidui_model_type set token = '' , baseurl='' where id = 'id';

```

### 2.4 Accessing Services

Access link http://localhost:8099

Expand Down
11 changes: 11 additions & 0 deletions docs/deployment/deployment-standalone.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,17 @@ mysql -h192.168.xx.xx -P3306 -uroot -p
# create database
CREATE DATABASE solidui DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;

# Modify the database connection information, modify the table solidui_model_type, token and baseurl fields (supported after version 0.2.0)
token is the model API token
baseurl is the base address of the model API, for example: https://api.openai.com (this is the address of openai abroad), https://api.chatanywhere.com.cn (the address of the domestic agent of openai)

solidui-x.x.x-bin/entrance-server/conf/sql/mysql/solidui_mysql.sql
INSERT INTO `solidui_model_type` (`id`, `name`, `type_name`, `prompt`, `token`, `baseurl`)
VALUES
(1,'gpt-3.5-turbo','gpt',NULL,NULL,NULL),
(2,'gpt-4','gpt',NULL,NULL,NULL),
(3,'chatglm_lite','chatglm',NULL,NULL,NULL);

# Execute the database initialization script

source solidui-x.x.x-bin/entrance-server/conf/sql/mysql/solidui_mysql.sql
Expand Down
2 changes: 1 addition & 1 deletion docs/deployment/deployment-web.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ If you need to modify the port or static resource directory, etc., please modify
- Check whether nginx starts normally: check whether the nginx process exists `ps -ef |grep nginx`
- Check if the configuration of nginx is correct `sudo nginx -T`
- If the port is occupied, you can modify the service port `/etc/nginx/conf.d/solidui.conf`listen port value started by nginx, save and restart
:::
:::
## 5 Frequently Asked Questions
### 5.1 Interface timeout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,20 @@ docker-compose up -d

```

### 2.3 访问服务
### 2.3 修改数据库表信息,修改表solidui_model_type,token和baseurl字段 (0.2.0版本以后支持)

token为模型API token
baseurl为模型API基础地址,例如:https://api.openai.com(这是国外openai地址),https://api.chatanywhere.com.cn(openai国内代理地址),http://ip:port(chatGLM地址)

```shell script
# 进入Docker-Compose新建的mysql中
mysql -h ip -u root -p
use solidui;
update solidui_model_type set token = '' , baseurl='' where id = 'id';

```

### 2.4 访问服务

访问链接 http://localhost:8099

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,20 @@ mysql -h192.168.xx.xx -P3306 -uroot -p
# 创建数据库
CREATE DATABASE solidui DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;


# 修改数据库连接信息,修改表solidui_model_type,token和baseurl字段 (0.2.0版本以后支持)
token为模型API token
baseurl为模型API基础地址,例如:https://api.openai.com(这是国外openai地址),https://api.chatanywhere.com.cn(openai国内代理地址),http://ip:port(chatGLM地址)

solidui-x.x.x-bin/entrance-server/conf/sql/mysql/solidui_mysql.sql
INSERT INTO `solidui_model_type` (`id`, `name`, `type_name`, `prompt`, `token`, `baseurl`)
VALUES
(1,'gpt-3.5-turbo','gpt',NULL,NULL,NULL),
(2,'gpt-4','gpt',NULL,NULL,NULL),
(3,'chatglm_lite','chatglm',NULL,NULL,NULL);



# 执行数据库初始化脚本

source solidui-x.x.x-bin/entrance-server/conf/sql/mysql/solidui_mysql.sql
Expand Down

0 comments on commit 041d236

Please sign in to comment.