feat: 添加模型图标支持并更新相关组件以显示图标

This commit is contained in:
Roe-xin
2026-01-04 10:56:57 +08:00
parent c27b08cccf
commit acf3f9ff37
9 changed files with 103 additions and 15 deletions

View File

@ -21,7 +21,13 @@ import { getAgentCardStyles, getAgentCardScript } from "./agentCard";
/**
* 获取 WebView 面板的 HTML 内容
*/
export function getWebviewContent(iconUri?: string): string {
export function getWebviewContent(
iconUri?: string,
autoIconUri?: string,
liteIconUri?: string,
syIconUri?: string,
maxIconUri?: string
): string {
return `<!DOCTYPE html>
<html lang="zh-CN">
<head>
@ -398,7 +404,7 @@ export function getWebviewContent(iconUri?: string): string {
<button class="quick-btn" onclick="quickAction('explore')">知识探索</button>
</div> -->
${getInputAreaContent()}
${getInputAreaContent(autoIconUri, liteIconUri, syIconUri, maxIconUri)}
</div>
<script>