Allow request body model editing

This commit is contained in:
fawney19
2026-05-06 20:35:49 +08:00
parent 4bd49d0d7a
commit 7b11d43466
3 changed files with 79 additions and 12 deletions

View File

@@ -1422,7 +1422,6 @@ const RESPONSE_HEADER_RULES_CAMEL_CONFIG_KEY = 'responseHeaderRules'
// 系统保留的 body 字段名(不允许用户设置)
const RESERVED_BODY_FIELDS = new Set([
'model',
'stream',
])

View File

@@ -148,7 +148,7 @@
{{ requestBodyError }}
</div>
<div class="rounded-md border border-border/60 bg-muted/20 px-3 py-2 text-[11px] text-muted-foreground">
会强制使用当前测试模型这里编辑的是测试基础请求体实际发送时会按端点格式转换并应用规则
请求体中的 model 会按当前编辑内容发送未填写时使用当前测试模型实际发送时会按端点格式转换并应用规则
</div>
</div>
</div>