docs: update reademe quickstart (#2372)
This commit is contained in:
32
README.md
32
README.md
@ -50,32 +50,22 @@ Deployment steps:
|
||||
# Clone code
|
||||
git clone https://github.com/coze-dev/coze-studio.git
|
||||
```
|
||||
2. Deploy and start the service. When deploying and starting Coze Studio for the first time, it may take a while to retrieve images and build local images. Please be patient. During deployment, you will see the following log information. If you see the message "Container coze-server Started," it means the Coze Studio service has started successfully.
|
||||
|
||||
2. Configure the model.
|
||||
1. Copy the template files of the doubao-seed-1.6 model from the template directory and paste them into the configuration file directory.
|
||||
```Bash
|
||||
cd coze-studio
|
||||
# Copy model configuration template
|
||||
cp backend/conf/model/template/model_template_ark_doubao-seed-1.6.yaml backend/conf/model/ark_doubao-seed-1.6.yaml
|
||||
```
|
||||
|
||||
2. Modify the template file in the configuration file directory.
|
||||
1. Enter the directory `backend/conf/model`. Open the file `ark_doubao-seed-1.6.yaml`.
|
||||
2. Set the fields `id`, `meta.conn_config.api_key`, `meta.conn_config.model`, and save the file.
|
||||
* **id**: The model ID in Coze Studio, defined by the developer, must be a non-zero integer and globally unique. Agents or workflows call models based on model IDs. For models that have already been launched, do not modify their IDs; otherwise, it may result in model call failures.
|
||||
* **meta.conn_config.api_key**: The API Key for the model service. In this example, it is the API Key for Ark API Key. For more information, see [Get Volcengine Ark API Key](https://www.volcengine.com/docs/82379/1541594) or [Get BytePlus ModelArk API Key](https://docs.byteplus.com/en/docs/ModelArk/1361424?utm_source=github&utm_medium=readme&utm_campaign=coze_open_source).
|
||||
* **meta.conn_config.model**: The Model name for the model service. In this example, it refers to the Model ID or Endpoint ID of Ark. For more information, see [Get Volcengine Ark Model ID](https://www.volcengine.com/docs/82379/1513689) / [Get Volcengine Ark Endpoint ID](https://www.volcengine.com/docs/82379/1099522) or [Get BytePlus ModelArk Model ID](https://docs.byteplus.com/en/docs/ModelArk/model_id?utm_source=github&utm_medium=readme&utm_campaign=coze_open_source) / [Get BytePlus ModelArk Endpoint ID](https://docs.byteplus.com/en/docs/ModelArk/1099522?utm_source=github&utm_medium=readme&utm_campaign=coze_open_source).
|
||||
> For users in China, you may use Volcengine Ark; for users outside China, you may use BytePlus ModelArk instead.
|
||||
3. Deploy and start the service.
|
||||
When deploying and starting Coze Studio for the first time, it may take a while to retrieve images and build local images. Please be patient. During deployment, you will see the following log information. If you see the message "Container coze-server Started," it means the Coze Studio service has started successfully.
|
||||
```Bash
|
||||
# Start the service
|
||||
cd docker
|
||||
cd coze-studio
|
||||
# start service
|
||||
# for macOS or Linux
|
||||
make web
|
||||
# for windows
|
||||
cp .env.example .env
|
||||
docker compose up -d
|
||||
docker compose -f ./docker/docker-compose.yml up
|
||||
```
|
||||
|
||||
For common startup failure issues, **please refer to the [FAQ](https://github.com/coze-dev/coze-studio/wiki/9.-FAQ)**.
|
||||
4. After starting the service, you can open Coze Studio by accessing `http://localhost:8888/` through your browser.
|
||||
3. Register an account by visiting `http://localhost:8888/sign`, entering your username and password, and clicking the Register button.
|
||||
4. Configure the model at `http://localhost:8888/admin/#model-management` by adding a new model.
|
||||
5. Visit Coze Studio at `http://localhost:8888/`.
|
||||
|
||||
> [!WARNING]
|
||||
> If you want to deploy Coze Studio in a public network environment, it is recommended to assess security risks before you begin, and take corresponding protection measures. Possible security risks include account registration functions, Python execution environments in workflow code nodes, Coze Server listening address configurations, SSRF (Server - Side Request Forgery), and some horizontal privilege escalations in APIs. For more details, refer to [Quickstart](https://github.com/coze-dev/coze-studio/wiki/2.-Quickstart#security-risks-in-public-networks).
|
||||
|
||||
Reference in New Issue
Block a user