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
- In the Editor window or Agent window, open Settings → Model. Agent is an assistant that can read and write files and perform tasks.
- Click Add Model.
- Select Custom Model in the model service provider option.
- 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:
- Model Series: Select "Default";
qwen3.8-flashDo not apply parameters of GPT, Claude or DeepSeek series. - Supports image input: Close first. This example calls configuration by literal and tool.
- Thinking Mode: First select "Follow model default configuration".
- Context window, tool calling rounds, sampling parameters: Keep the defaults first; when modifications are needed, the model capabilities confirmed by the customer service on the site shall prevail.
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.
- 404 / Path does not exist: Confirm that "Full URL" is turned on, and the address ends with
/v1/chat/completionsonly once. - 401 / Invalid key: Confirm that the key you filled in is the key created on the "API Keys" page of ShangHai Do.
- Model does not exist: Copy the exact model name from the results for
GET /v1/models, keeping case and punctuation consistent. - Added successfully but cannot be selected: Check the enable switch in the model management panel, and then create a new session to select the model.
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.