Megasoft (@zhong_little) 在 newapi 参数覆盖功能更新,支持更多语义操作 中发帖
newapi 刚刚更新了参数覆盖功能,支持了更多语义操作,要实现批量移除、增加、替换参数更加方便了。
[image]
举个例子,某渠道支持多个 DeepSeek 模型,但是默认不开启思考,需要配置 thinking 参数
[image]
想要通过识别 -think 模型后缀自动添加上思考参数,我们可以这么写:
{
"operations": [
{
"path": "thinking.type",
"mode": "set",
"value": "enabled",
"conditions": [
{ "path": "model", "mode": "prefix", "value": "DeepSeek-" },
{ "path": "model", "mode": "suffix...