wylon

Configuring TraeCode

TraeCode supports custom models, allowing you to use wylon chat models through the OpenAI Chat Completions-compatible protocol.

1. Add a model

  1. Open Settings → Models and select Add Model.
  2. Switch to Custom configuration.
  3. Enter the values below. Advanced display, context-window, and tool-turn options are optional.
  4. Select Add Model.
FieldValue
API formatOpenAI Chat Completions
Full URLOff
Custom request URLhttps://api.wylon.cn/v1
Model IDA complete ID, such as ZhipuAI/GLM-5.3
MultimodalOff for text-only models
API KeyYour wylon API key
info
TraeCode validates the connection when adding a modelIt makes a real wylon request to validate the key, URL, and model ID. Successful models enter the list; failures show an error and server log.

Request URL and Full URL

Recommended: leave Full URL off and use https://api.wylon.cn/v1. Alternatively, turn it on and enter https://api.wylon.cn/v1/chat/completions.

warning
The switch and URL must matchWith Full URL on, do not stop at /v1. With it off, do not enter the full /chat/completions path. Either mismatch can return 404.

Model ID

Copy the exact, case-sensitive model ID from the Model Plaza or GET /v1/models.

Multimodal input

Disable image input for text-only models such as ZhipuAI/GLM-5.3.

Model family

Keep the model family at its default unless the selected model requires a matching preset. Unrelated presets may rewrite protocol fields, parameters, or thinking mode.

2. Select and verify the model

  1. Turn off AUTO in the chat input.
  2. Select your custom model.
  3. Send a simple message. A normal response confirms the endpoint, key, and model ID.
info
If the newly added model is missing from the selector, open Settings → Models and confirm that it is enabled.

3. Use another model

Copy the exact ID from the Model Plaza or GET https://api.wylon.cn/v1/models. Create another custom entry, keeping the same request URL and API key while replacing the model ID and matching its declared capabilities.

info
Create a new chat after switching models. For tool use, long-context, or structured-output workloads, rerun the relevant capability checks and update the multimodal setting as needed.
沪ICP备2026010432号-1沪公网安备31010402336632号