TRAE Chinese version access

TRAE China version official documentation supports configuring the request format, address, model name and API key through "custom model". This article chooses OpenAI Chat Completions, which is the /v1/chat/completions conversation interface of this site.

If not yet installed, download the editor from TRAE China official website. This article follows the China edition documentation. The international edition and older versions may use different menus.

Add a ShangHai Do model

  1. In the Editor window or Agent window, open Settings → Model. Agent is an assistant that can read and write files and perform tasks.
  2. Click Add Model.
  3. Select Custom Model in the model service provider option.
  4. Fill in the following:
Field Fill in content
API format OpenAI Chat Completions format
Full URL Open
Custom request address https://shanghaido.com/v1/chat/completions
Model ID qwen3.8-flash
Model display name ShangHai Do qwen3.8-flash
API key Your site token, such as YOUR_API_KEY

The "Full URL" is actively turned on here, allowing TRAE to directly use the completed request address to avoid repeatedly adding /v1 when automatically splicing the path. If you use other ShangHai Do deployment, just replace the domain name and keep /v1/chat/completions.

Advanced Configuration

First time access suggestions:

After clicking Add Model, TRAE will request the interface detection key. After the connection is successful, make sure the model is enabled and select ShangHai Do qwen3.8-flash from the model list in the lower right corner of the dialog box.

Confirm whether it is successful

First send "Please reply: Connection successful", and then let the assistant read a small file. If you need to open images or other advanced capabilities, please check the instructions for the corresponding model first.

official information

encountered a problem

If you encounter problems with calling or configuration, please contact the site customer service and provide the model name, error time and error information to facilitate troubleshooting.