feat(models): add model test debugger for saved model configs
Let admins send real requests against configured chat, embedding, rerank, VLM, and ASR models from settings, with thinking controls shown only when the model supports them.
This commit is contained in:
@@ -4237,6 +4237,7 @@ export default {
|
||||
},
|
||||
actions: {
|
||||
addModel: "添加模型",
|
||||
debugModel: "模型测试",
|
||||
setDefault: "设为默认",
|
||||
},
|
||||
source: {
|
||||
@@ -4298,6 +4299,54 @@ export default {
|
||||
},
|
||||
builtinTag: "内置",
|
||||
confirmDelete: "确定删除模型「{name}」吗?",
|
||||
debug: {
|
||||
title: "模型测试",
|
||||
description: "向已配置的模型发送真实请求,查看响应与耗时",
|
||||
groupModel: "选择模型",
|
||||
groupInput: "测试输入",
|
||||
groupResult: "运行结果",
|
||||
modelType: "模型类型",
|
||||
model: "模型",
|
||||
modelPlaceholder: "请选择要测试的模型",
|
||||
noModelsForType: "当前类型暂无已添加模型",
|
||||
query: "输入内容",
|
||||
queryPlaceholder: "输入要发送给模型的内容",
|
||||
embeddingInput: "待向量化文本",
|
||||
embeddingPlaceholder: "输入要生成 Embedding 的文本",
|
||||
vlmPrompt: "图片提示词",
|
||||
vlmPromptPlaceholder: "例如:请详细描述这张图片",
|
||||
documents: "候选文档",
|
||||
documentsPlaceholder: "每行输入一个候选文档",
|
||||
documentsHint: "每个非空行会作为一个独立文档发送给 ReRank 模型",
|
||||
imageFile: "图片文件",
|
||||
audioFile: "音频文件",
|
||||
chooseFile: "选择文件",
|
||||
parameters: "请求参数",
|
||||
thinking: "思考模式",
|
||||
thinkingDesc: "仅对支持思考模式的模型生效",
|
||||
systemPrompt: "System Prompt",
|
||||
systemPromptPlaceholder: "可选,输入系统提示词",
|
||||
run: "运行测试",
|
||||
copyResult: "复制结果",
|
||||
history: "历史记录",
|
||||
thinkOn: "思考开启",
|
||||
thinkOff: "思考关闭",
|
||||
runLabel: "第 {n} 次运行",
|
||||
success: "调用成功",
|
||||
failed: "调用失败",
|
||||
rawResponse: "响应内容",
|
||||
requestPreview: "请求预览",
|
||||
requestFailed: "模型测试请求失败",
|
||||
metrics: {
|
||||
dimension: "向量维度",
|
||||
resultCount: "结果数量",
|
||||
answerChars: "回答字符数",
|
||||
reasoningChars: "推理字符数",
|
||||
reasoningReturned: "返回推理内容",
|
||||
textChars: "转写字符数",
|
||||
segmentCount: "分段数量",
|
||||
},
|
||||
},
|
||||
},
|
||||
// 新增:Ollama 设置
|
||||
ollamaSettings: {
|
||||
|
||||
Reference in New Issue
Block a user