同时开启model-mapper和transformer插件,会导致model-mapper插件功能失效,直接使用原始请求body的model参数请求大模型,如下:
1.请求body:
{
"model": "deepseek-r1-250120",
"stream": false,
"messages": [
{
"role": "user",
"content": "10个字介绍下淮安"
}
]
}
2.路由配置:

3.transformer插件配置:

4.model-mapper配置:

5.请求日志:

预期结果是:会使用“deepseek-r11”去请求大模型。
Turn on the model-mapper and transformer plug-ins at the same time will cause the model-mapper plug-in to fail. You can directly use the model parameters of the original request body to request the big model, as follows:
- Request body:
{
"model": "deepseek-r1-250120",
"stream": false,
"messages": [
{
"role": "user",
"content": "Introduced by Huai'an in 10 words"
}
]
}
2.Routing configuration:

- Transformer plug-in configuration:

- Model-mapper configuration:

- Request log:

The expected result is: "deepseek-r11" will be used to request the big model.