feat:修改模型描述的展现形式和内容
This commit is contained in:
@ -36,7 +36,7 @@ export function getWebviewContent(
|
||||
): string {
|
||||
// 获取当前环境,只在 dev 和 test 环境下显示快速操作按钮
|
||||
const currentEnv = getCurrentEnv();
|
||||
const showQuickActions = currentEnv === 'dev' || currentEnv === 'test';
|
||||
const showQuickActions = currentEnv === "dev" || currentEnv === "test";
|
||||
|
||||
return `<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
@ -409,12 +409,16 @@ export function getWebviewContent(
|
||||
<span id="statusText">思考中...</span>
|
||||
</div>
|
||||
|
||||
${showQuickActions ? `<div class="quick-actions">
|
||||
${
|
||||
showQuickActions
|
||||
? `<div class="quick-actions">
|
||||
<button class="quick-btn" onclick="quickAction('counter')">生成计数器</button>
|
||||
<button class="quick-btn" onclick="quickAction('fsm')">生成状态机</button>
|
||||
<button class="quick-btn" onclick="quickAction('testbench')">生成测试平台</button>
|
||||
<button class="quick-btn" onclick="quickAction('explore')">知识探索</button>
|
||||
</div>` : ''}
|
||||
</div>`
|
||||
: ""
|
||||
}
|
||||
|
||||
${getInputAreaContent(autoIconUri, liteIconUri, syIconUri, maxIconUri)}
|
||||
</div>
|
||||
@ -455,10 +459,9 @@ export function getWebviewContent(
|
||||
}
|
||||
if (modeTooltip) {
|
||||
const tooltipMap = {
|
||||
'plan': '只读模式 - 只能查询分析',
|
||||
'ask': '逐个确认 - 每个写操作需确认',
|
||||
'agent': '智能体自主模式',
|
||||
'auto': '完全自动 - 所有操作自动执行'
|
||||
'plan': 'plan模式',
|
||||
'ask': 'ask模式',
|
||||
'agent': 'agent模式'
|
||||
};
|
||||
modeTooltip.textContent = tooltipMap[value] || '切换模式';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user