Skip to content

model-mapper和transformer插件兼容问题 || Compatibility issues with model-mapper and transformer plug-in #2302

@yumc2573

Description

@yumc2573

同时开启model-mapper和transformer插件,会导致model-mapper插件功能失效,直接使用原始请求body的model参数请求大模型,如下:

1.请求body:
{
"model": "deepseek-r1-250120",
"stream": false,
"messages": [
{
"role": "user",
"content": "10个字介绍下淮安"
}
]
}

2.路由配置:

Image

3.transformer插件配置:

Image

4.model-mapper配置:

Image

5.请求日志:

Image

预期结果是:会使用“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:

  1. Request body:
    {
    "model": "deepseek-r1-250120",
    "stream": false,
    "messages": [
    {
    "role": "user",
    "content": "Introduced by Huai'an in 10 words"
    }
    ]
    }

2.Routing configuration:

Image

  1. Transformer plug-in configuration:

Image

  1. Model-mapper configuration:

Image

  1. Request log:

Image

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions