|
Parameter |
Type |
Description |
Example |
|---|---|---|---|
|
object |
The backend service. |
||
| scene |
string |
The backend service scenario. Valid values: [Single, MultiServiceByRatio, MultiServiceByTag, Mock, Redirect] |
Single |
| enableSystemModels |
boolean |
Specifies whether to enable gateway system models. This field is used to display the AiAutoRouter built-in routes generated by Model API deployConfigs. The general Route creation and update operations do not accept this field. |
true |
| services |
array |
The backend service. |
|
|
object |
The backend service. |
||
| serviceId |
string |
The service ID. |
service-cq2bmmdlhtgj*** |
| modelName |
string |
The target model name. This field is shared by multiple existing model backend scenarios. The specific routing or model rewrite semantics are determined by the scene field. This field is required for the SemanticRouter scenario. If not specified in the AiAutoRouter scenario, the default model of the AI service is used. |
qwen-plus |
| name |
string |
The service name. |
item-service |
| protocol |
string |
The service protocol. Valid values: [HTTP, TCP, DUBBO] |
HTTP |
| port |
integer |
The service port. Do not specify this parameter for dynamic ports. |
port |
| weight |
integer |
The percentage value of the traffic ratio. |
49 |
| version |
string |
The service version. |
v1 |
| sourceType |
string |
The service source type. Set this to MSE_NACOS for HTTP-to-Dubbo conversion scenarios. |
MSE_NACOS |
| groupName |
string |
The service group. Used in HTTP-to-Dubbo conversion scenarios. |
DEFAULT_GROUP |
| namespace |
string |
The service namespace. Used in HTTP-to-Dubbo conversion scenarios. |
public |
| httpDubboTranscoder | HttpDubboTranscoder |
The HTTP-to-Dubbo protocol conversion configuration. Only supported for SingleService MSE_NACOS DUBBO backends of HTTP APIs. |
{"dubboServiceName":"com.alibaba.nacos.example.dubbo.service.DemoService","dubboServiceVersion":"1.0.0","dubboServiceGroup":"DEV","methodMapList":[{"dubboMethodName":"sayName","httpMethod":"ALL_GET","methodPath":"/dubbo/sayName","passThroughAllHeaders":"PASS_ALL"}]} |