Skip to content

Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.

feat: add a new LLM configuration page

puji4810b27e6916a892
diff --git a/internal/desktop/components.go b/internal/desktop/components.go
index aef1178b..5cb74fb6 100644
--- a/internal/desktop/components.go
+++ b/internal/desktop/components.go
@@ -8,6 +8,7 @@ import (
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/canvas"
"fyne.io/fyne/v2/container"
+ "fyne.io/fyne/v2/driver/desktop"
"fyne.io/fyne/v2/layout"
"fyne.io/fyne/v2/theme"
"fyne.io/fyne/v2/widget"
@@ -416,3 +417,51 @@ func ThemeToggleButton(isDark bool, onToggle func()) *widget.Button {
btn.Importance = widget.MediumImportance
return btn
}
+
+// 自定义可点击对象,避免按钮的默认样式
+type tappableObject struct {
+ widget.BaseWidget
+ rect *canvas.Rectangle
+ onTap func()
+ onHover func(bool) // 悬停回调函数
+}
+
+func (t *tappableObject) CreateRenderer() fyne.WidgetRenderer {
+ return widget.NewSimpleRenderer(t.rect)
+}
+
+func (t *tappableObject) Tapped(*fyne.PointEvent) {
+ if t.onTap != nil {
+ t.onTap()
+ }
+}
+
+func (t *tappableObject) TappedSecondary(*fyne.PointEvent) {}
+
+func (t *tappableObject) MouseIn(*desktop.MouseEvent) {
+ if t.onHover != nil {
+ t.onHover(true)
+ }
+}
+
+func (t *tappableObject) MouseOut() {
+ if t.onHover != nil {
+ t.onHover(false)
+ }
+}
+
+func (t *tappableObject) MouseMoved(*desktop.MouseEvent) {}
+
+func (t *tappableObject) Resize(size fyne.Size) {
+ t.BaseWidget.Resize(size)
+ if t.rect != nil {
+ t.rect.Resize(size)
+ }
+}
+
+func (t *tappableObject) Move(pos fyne.Position) {
+ t.BaseWidget.Move(pos)
+ if t.rect != nil {
+ t.rect.Move(pos)
+ }
+}
\ No newline at end of file
diff --git a/internal/desktop/desktop.go b/internal/desktop/desktop.go
index 9f692973..08ec4996 100644
--- a/internal/desktop/desktop.go
+++ b/internal/desktop/desktop.go
@@ -5,7 +5,6 @@ import (
"image/color"
"krillin-ai/config"
"krillin-ai/log"
- "time"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/app"
@@ -60,8 +59,8 @@ func Show() {
logoContainer.Add(separator)
logoContainer.Add(slogan)
- navItems := []string{"工作台 Dashboard", "配置 Settings"}
- navIcons := []fyne.Resource{theme.DocumentIcon(), theme.SettingsIcon()}
+ navItems := []string{"工作台 Dashboard", "LLM 配置", "配置 Settings"}
+ navIcons := []fyne.Resource{theme.DocumentIcon(), theme.ComputerIcon(), theme.SettingsIcon()}
var navButtons []*widget.Button
navContainer := container.NewVBox()
@@ -69,22 +68,34 @@ func Show() {
contentStack := container.NewStack()
currentSelectedIndex := 0
- var workbenchContent, configContent fyne.CanvasObject
+ var workbenchContent, llmContent, configContent fyne.CanvasObject
var refreshContent = func() {
contentStack.Objects = []fyne.CanvasObject{}
workbenchContent = CreateSubtitleTab(myWindow)
+ llmContent = CreateLlmTab()
configContent = CreateConfigTab(myWindow)
- if currentSelectedIndex == 0 {
+ switch currentSelectedIndex {
+ case 0:
contentStack.Add(workbenchContent)
+ contentStack.Add(llmContent)
contentStack.Add(configContent)
+ llmContent.Hide()
configContent.Hide()
- } else {
+ case 1:
contentStack.Add(workbenchContent)
+ contentStack.Add(llmContent)
contentStack.Add(configContent)
workbenchContent.Hide()
+ configContent.Hide()
+ case 2:
+ contentStack.Add(workbenchContent)
+ contentStack.Add(llmContent)
+ contentStack.Add(configContent)
+ workbenchContent.Hide()
+ llmContent.Hide()
}
contentStack.Refresh()
@@ -114,31 +125,32 @@ func Show() {
}
}
- if index == 0 {
- err := config.SaveConfig()
- if err != nil {
- dialog.ShowError(fmt.Errorf("保存配置失败: %v", err), myWindow)
- log.GetLogger().Error("保存配置失败 Failed to save config", zap.Error(err))
- return
- }
- log.GetLogger().Info("配置已保存 Config saved successfully")
+ // 保存配置并切换界面
+ err := config.SaveConfig()
+ if err != nil {
+ dialog.ShowError(fmt.Errorf("保存配置失败: %v", err), myWindow)
+ }
+
+ switch index {
+ case 0:
workbenchContent.Show()
+ llmContent.Hide()
+ configContent.Hide()
+ case 1:
+ workbenchContent.Hide()
+ llmContent.Show()
configContent.Hide()
- workbenchContent.Refresh()
- FadeAnimation(workbenchContent, 300*time.Millisecond, 0.0, 1.0)
- } else {
+ case 2:
workbenchContent.Hide()
+ llmContent.Hide()
configContent.Show()
- FadeAnimation(configContent, 300*time.Millisecond, 0.0, 1.0)
}
currentSelectedIndex = index
- navContainer.Refresh()
- contentStack.Refresh()
})
navButtons = append(navButtons, navBtn)
- navContainer.Add(container.NewPadded(navBtn))
+ navContainer.Add(navBtn)
}
themeToggleContainer := themeManager.CreateThemeToggleButton()
diff --git a/internal/desktop/ui.go b/internal/desktop/ui.go
index de809c0f..caee0b2e 100644
--- a/internal/desktop/ui.go
+++ b/internal/desktop/ui.go
@@ -8,6 +8,8 @@ import (
"krillin-ai/internal/server"
"krillin-ai/internal/types"
"krillin-ai/log"
+ "krillin-ai/static"
+ "net/url"
"path/filepath"
"strconv"
"time"
@@ -29,7 +31,6 @@ func CreateConfigTab(window fyne.Window) fyne.CanvasObject {
appGroup := createAppConfigGroup()
serverGroup := createServerConfigGroup()
- llmGroup := createLlmConfigGroup()
transcribeGroup := createTranscribeConfigGroup()
ttsGroup := createTtsConfigGroup()
@@ -58,7 +59,6 @@ func CreateConfigTab(window fyne.Window) fyne.CanvasObject {
spacer1,
container.NewPadded(appGroup),
container.NewPadded(serverGroup),
- container.NewPadded(llmGroup),
container.NewPadded(transcribeGroup),
container.NewPadded(ttsGroup),
spacer2,
@@ -71,6 +71,304 @@ func CreateConfigTab(window fyne.Window) fyne.CanvasObject {
return container.NewPadded(configStack)
}
+func CreateLlmTab() fyne.CanvasObject {
+ pageTitle := TitleText("LLM 配置")
+
+ // 创建API供应商快捷链接区域
+ providersCard := createApiProvidersCard()
+
+ // 创建LLM配置表单
+ llmConfigCard := createLlmConfigGroup()
+
+ // 创建使用指南卡片
+ guideCard := createLlmGuideCard()
+
+ var background *canvas.LinearGradient
+ if GetCurrentThemeIsDark() {
+ background = canvas.NewLinearGradient(
+ color.NRGBA{R: 15, G: 23, B: 42, A: 255},
+ color.NRGBA{R: 30, G: 41, B: 59, A: 255},
+ 0.0,
+ )
+ } else {
+ background = canvas.NewLinearGradient(
+ color.NRGBA{R: 248, G: 250, B: 252, A: 255},
+ color.NRGBA{R: 241, G: 245, B: 249, A: 255},
+ 0.0,
+ )
+ }
+
+ spacer1 := canvas.NewRectangle(color.NRGBA{R: 0, G: 0, B: 0, A: 0})
+ spacer1.SetMinSize(fyne.NewSize(0, 15))
+ spacer2 := canvas.NewRectangle(color.NRGBA{R: 0, G: 0, B: 0, A: 0})
+ spacer2.SetMinSize(fyne.NewSize(0, 15))
+
+ llmContainer := container.NewVBox(
+ container.NewPadded(pageTitle),
+ spacer1,
+ container.NewPadded(providersCard),
+ container.NewPadded(llmConfigCard),
+ container.NewPadded(guideCard),
+ spacer2,
+ )
+
+ scroll := container.NewScroll(llmContainer)
+ llmStack := container.NewStack(background, scroll)
+
+ return container.NewPadded(llmStack)
+}
+
+// 创建API供应商快捷链接卡片
+func createApiProvidersCard() *fyne.Container {
+ // 通义千问卡片
+ qwenCard := createProviderCard(
+ "通义千问 Qwen",
+ "阿里云大模型服务",
+ "https://bailian.console.aliyun.com/",
+ color.NRGBA{R: 99, G: 54, B: 231, A: 255}, // 通义千问紫色
+ "qwen",
+ )
+
+ // OpenAI卡片
+ openaiCard := createProviderCard(
+ "OpenAI",
+ "GPT模型API服务",
+ "https://platform.openai.com/",
+ color.NRGBA{R: 116, G: 195, B: 101, A: 255}, // OpenAI绿色
+ "openai",
+ )
+
+ // DeepSeek卡片
+ deepseekCard := createProviderCard(
+ "DeepSeek",
+ "高性价比AI模型",
+ "https://platform.deepseek.com/",
+ color.NRGBA{R: 77, G: 107, B: 254, A: 255}, // DeepSeek蓝色
+ "deepseek",
+ )
+
+ // SiliconCloud卡片
+ siliconcloudCard := createProviderCard(
+ "SiliconCloud",
+ "硅基流动",
+ "https://siliconflow.cn/",
+ color.NRGBA{R: 110, G: 41, B: 246, A: 255}, // SiliconCloud紫色
+ "siliconcloud",
+ )
+
+ providersGrid := container.New(
+ layout.NewGridLayoutWithColumns(2),
+ qwenCard,
+ openaiCard,
+ deepseekCard,
+ siliconcloudCard,
+ )
+
+ return GlassmorphismCard(
+ "API 供应商",
+ "点击下方卡片快速跳转到对应平台购买API",
+ providersGrid,
+ GetCurrentThemeIsDark(),
+ )
+}
+
+// 获取供应商图标
+func getProviderIcon(provider string) fyne.CanvasObject {
+ var pngPath string
+ switch provider {
+ case "qwen":
+ pngPath = "source/qwen-color.png"
+ case "openai":
+ pngPath = "source/openai.png"
+ case "deepseek":
+ pngPath = "source/deepseek-color.png"
+ case "siliconcloud":
+ pngPath = "source/siliconcloud-color.png"
+ default:
+ return container.NewWithoutLayout()
+ }
+
+ data, err := static.EmbeddedFiles.ReadFile(pngPath)
+ if err != nil {
+ log.GetLogger().Error("Failed to load PNG icon", zap.String("path", pngPath), zap.Error(err))
+ return container.NewWithoutLayout()
+ }
+
+ res := fyne.NewStaticResource(pngPath, data)
+ img := canvas.NewImageFromResource(res)
+ img.FillMode = canvas.ImageFillContain
+ img.SetMinSize(fyne.NewSize(24, 24))
+ img.Resize(fyne.NewSize(24, 24))
+ return img
+}
+
+// 创建单个供应商卡片
+func createProviderCard(name, description, url string, accentColor color.Color, provider string) *fyne.Container {
+ isDark := GetCurrentThemeIsDark()
+
+ var bgColor color.Color
+ var textColor color.Color
+ var descColor color.Color
+ var shadowColor color.Color
+ var hoverBgColor color.Color
+
+ if isDark {
+ bgColor = color.NRGBA{R: 51, G: 65, B: 85, A: 120}
+ hoverBgColor = color.NRGBA{R: 71, G: 85, B: 105, A: 150}
+ textColor = color.NRGBA{R: 248, G: 250, B: 252, A: 255}
+ descColor = color.NRGBA{R: 148, G: 163, B: 184, A: 255}
+ shadowColor = color.NRGBA{R: 0, G: 0, B: 0, A: 60}
+ } else {
+ bgColor = color.NRGBA{R: 255, G: 255, B: 255, A: 200}
+ hoverBgColor = color.NRGBA{R: 245, G: 247, B: 250, A: 220}
+ textColor = color.NRGBA{R: 17, G: 24, B: 39, A: 255}
+ descColor = color.NRGBA{R: 107, G: 114, B: 128, A: 255}
+ shadowColor = color.NRGBA{R: 0, G: 0, B: 0, A: 30}
+ }
+
+ // 创建阴影效果
+ shadow := canvas.NewRectangle(shadowColor)
+ shadow.CornerRadius = 12
+ shadow.Move(fyne.NewPos(2, 2))
+
+ // 背景
+ background := canvas.NewRectangle(bgColor)
+ background.CornerRadius = 12
+ background.StrokeColor = accentColor
+ background.StrokeWidth = 2
+
+ // 图标
+ icon := getProviderIcon(provider)
+ // 顶部留白,避免图标贴近上边缘
+ topPadding := canvas.NewRectangle(color.NRGBA{R: 0, G: 0, B: 0, A: 0})
+ topPadding.SetMinSize(fyne.NewSize(0, 12))
+ // 为图标创建容器以确保居中
+ iconContainer := container.NewCenter(icon)
+
+ // 标题
+ nameLabel := canvas.NewText(name, textColor)
+ nameLabel.TextSize = 16
+ nameLabel.TextStyle = fyne.TextStyle{Bold: true}
+ nameLabel.Alignment = fyne.TextAlignCenter
+
+ // 描述
+ descLabel := canvas.NewText(description, descColor)
+ descLabel.TextSize = 12
+ descLabel.Alignment = fyne.TextAlignCenter
+
+ // 创建可点击的容器
+ content := container.NewVBox(
+ topPadding,
+ iconContainer,
+ container.NewPadded(nameLabel),
+ container.NewPadded(descLabel),
+ )
+
+ // 创建卡片容器,包含阴影和背景
+ card := container.NewStack(shadow, background, content)
+ card.Resize(fyne.NewSize(200, 100)) // 增加高度以适应图标
+
+ // 创建透明的可点击区域
+ clickableArea := canvas.NewRectangle(color.NRGBA{R: 0, G: 0, B: 0, A: 0})
+ clickableArea.Resize(fyne.NewSize(200, 100))
+
+ // 创建自定义的可点击对象
+ tappable := &tappableObject{
+ rect: clickableArea,
+ onTap: func() {
+ // 点击效果:内陷动画
+ originalPos := card.Position()
+ originalShadowPos := shadow.Position()
+
+ // 内陷效果:卡片向下移动,阴影缩小
+ card.Move(fyne.NewPos(originalPos.X+1, originalPos.Y+1))
+ shadow.Move(fyne.NewPos(originalShadowPos.X+1, originalShadowPos.Y+1))
+
+ // 背景颜色变化
+ background.FillColor = hoverBgColor
+ background.Refresh()
+
+ // 打开浏览器链接
+ if app := fyne.CurrentApp(); app != nil {
+ app.OpenURL(parseURL(url))
+ }
+
+ // 恢复原位置和颜色
+ go func() {
+ time.Sleep(150 * time.Millisecond)
+ card.Move(fyne.NewPos(0, 0))
+ shadow.Move(fyne.NewPos(2, 2))
+ background.FillColor = bgColor
+ background.Refresh()
+ }()
+ },
+ onHover: func(hovering bool) {
+ if hovering {
+ // 悬停:仅做颜色和阴影变化,避免尺寸变化引发布局抖动
+ background.FillColor = hoverBgColor
+ background.StrokeWidth = 3
+ shadow.Move(fyne.NewPos(3, 3))
+ background.Refresh()
+ } else {
+ background.FillColor = bgColor
+ background.StrokeWidth = 2
+ shadow.Move(fyne.NewPos(2, 2))
+ background.Refresh()
+ }
+ },
+ }
+
+ // 创建最终容器
+ finalContainer := container.NewStack(card, tappable)
+
+ return finalContainer
+}
+
+// 创建LLM使用指南卡片
+func createLlmGuideCard() *fyne.Container {
+ guideText := `# LLM 配置指南:
+
+## API Base URL:(根据实际情况选择)
+ - OpenAI官方:https://api.openai.com/v1
+ - 阿里云百炼:https://dashscope.aliyuncs.com/compatible-mode/v1
+ - DeepSeek:https://api.deepseek.com/v1
+ - SiliconFlow:https://api.siliconflow.cn/v1
+
+## API Key:
+ - 在对应平台的控制台中获取
+ - 请妥善保管,避免泄露
+
+## 模型名称:
+ - OpenAI:gpt-3.5-turbo, gpt-4, gpt-4-turbo...
+ - 阿里云:qwen-turbo, qwen-plus, qwen-max...
+ - DeepSeek:deepseek-chat, deepseek-coder...
+ - SiliconFlow:DeepSeek-R1, DeepSeek-V3, QwQ-32B...
+
+## 使用建议:
+ - 根据实际需求选择合适的模型
+ - 注意API调用费用`
+
+ guideLabel := widget.NewRichTextFromMarkdown(guideText)
+ guideLabel.Wrapping = fyne.TextWrapWord
+
+ return GlassmorphismCard(
+ "使用指南",
+ "LLM API配置说明",
+ guideLabel,
+ GetCurrentThemeIsDark(),
+ )
+}
+
+// 解析URL的辅助函数
+func parseURL(urlStr string) *url.URL {
+ u, err := url.Parse(urlStr)
+ if err != nil {
+ log.GetLogger().Error("解析URL失败", zap.Error(err))
+ return nil
+ }
+ return u
+}
+
// 创建字幕任务界面
func CreateSubtitleTab(window fyne.Window) fyne.CanvasObject {
sm := NewSubtitleManager(window)
diff --git a/static/embed.go b/static/embed.go
index 3fd21d81..c49858f9 100644
--- a/static/embed.go
+++ b/static/embed.go
@@ -2,5 +2,5 @@ package static
import "embed"
-//go:embed index.html background.jpg
+//go:embed index.html background.jpg source/*.svg source/*.png
var EmbeddedFiles embed.FS
diff --git a/static/index.html b/static/index.html
index 45ab75e7..b75aa7a2 100644
--- a/static/index.html
+++ b/static/index.html
@@ -331,7 +331,8 @@
overflow: hidden;
}
#page-workbench,
- #page-config {
+ #page-config,
+ #llm-config {
flex: 1;
padding: 36px 48px 24px 48px;
overflow-y: auto;
@@ -343,21 +344,25 @@
}
/* 美化滚动条 */
#page-workbench::-webkit-scrollbar,
- #page-config::-webkit-scrollbar {
+ #page-config::-webkit-scrollbar,
+ #llm-config::-webkit-scrollbar {
width: 8px;
}
#page-workbench::-webkit-scrollbar-track,
- #page-config::-webkit-scrollbar-track {
+ #page-config::-webkit-scrollbar-track,
+ #llm-config::-webkit-scrollbar-track {
background: rgba(241, 245, 249, 0.5);
border-radius: 4px;
}
#page-workbench::-webkit-scrollbar-thumb,
- #page-config::-webkit-scrollbar-thumb {
+ #page-config::-webkit-scrollbar-thumb,
+ #llm-config::-webkit-scrollbar-thumb {
background: rgba(148, 163, 184, 0.5);
border-radius: 4px;
}
#page-workbench::-webkit-scrollbar-thumb:hover,
- #page-config::-webkit-scrollbar-thumb:hover {
+ #page-config::-webkit-scrollbar-thumb:hover,
+ #llm-config::-webkit-scrollbar-thumb:hover {
background: rgba(100, 116, 139, 0.7);
}
.status-bar {
@@ -431,19 +436,175 @@
min-width: 350px;
width: auto;
}
+ /* 卡片副标题 */
+ .card-subtitle {
+ color: #6b7280;
+ font-size: 0.9rem;
+ margin: -10px 0 20px 0;
+ }
+
+ /* API 供应商网格 */
+ .provider-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
+ gap: 16px;
+ margin-top: 20px;
+ }
+
+ /* 供应商卡片 */
+ .provider-card {
+ background: rgba(255, 255, 255, 0.9);
+ border-radius: 12px;
+ padding: 20px;
+ cursor: pointer;
+ transition: all 0.3s ease;
+ border: 2px solid transparent;
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
+ position: relative;
+ overflow: hidden;
+ }
+
+ .provider-card:hover {
+ transform: translateY(-2px);
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
+ border-width: 3px;
+ }
+
+ .provider-card.qwen {
+ border-color: #6336e7;
+ }
+
+ .provider-card.qwen:hover {
+ border-color: #6336e7;
+ background: rgba(99, 54, 231, 0.05);
+ }
+
+ .provider-card.openai {
+ border-color: #74c365;
+ }
+
+ .provider-card.openai:hover {
+ border-color: #74c365;
+ background: rgba(116, 195, 101, 0.05);
+ }
+
+ .provider-card.deepseek {
+ border-color: #4d6bfe;
+ }
+
+ .provider-card.deepseek:hover {
+ border-color: #4d6bfe;
+ background: rgba(77, 107, 254, 0.05);
+ }
+
+ .provider-card.siliconcloud {
+ border-color: #6e29f6;
+ }
+
+ .provider-card.siliconcloud:hover {
+ border-color: #6e29f6;
+ background: rgba(110, 41, 246, 0.05);
+ }
+
+ .provider-icon {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ margin-bottom: 12px;
+ color: #6b7280;
+ }
+
+ .provider-card .provider-icon img {
+ filter: none;
+ }
+
+ .provider-card.openai .provider-icon {
+ color: #74c365;
+ }
+
+ .provider-card.qwen .provider-icon {
+ color: #6336e7;
+ }
+
+ .provider-card.deepseek .provider-icon {
+ color: #4d6bfe;
+ }
+
+ .provider-card.siliconcloud .provider-icon {
+ color: #6e29f6;
+ }
+
+ .provider-name {
+ font-size: 1.1rem;
+ font-weight: 600;
+ color: #1e293b;
+ margin-bottom: 8px;
+ text-align: center;
+ }
+
+ .provider-desc {
+ font-size: 0.9rem;
+ color: #6b7280;
+ text-align: center;
+ }
+
+ /* 使用指南样式 */
+ .guide-content {
+ background: rgba(248, 250, 252, 0.8);
+ border-radius: 8px;
+ padding: 20px;
+ border: 1px solid rgba(209, 213, 219, 0.3);
+ }
+
+ .guide-content h4 {
+ color: #3b82f6;
+ font-size: 1rem;
+ font-weight: 600;
+ margin: 16px 0 8px 0;
+ }
+
+ .guide-content h4:first-child {
+ margin-top: 0;
+ }
+
+ .guide-content ul {
+ margin: 0 0 12px 0;
+ padding-left: 20px;
+ }
+
+ .guide-content li {
+ margin-bottom: 4px;
+ color: #4b5563;
+ line-height: 1.5;
+ }
+
+ .guide-content code {
+ background: rgba(59, 130, 246, 0.1);
+ color: #3b82f6;
+ padding: 2px 6px;
+ border-radius: 4px;
+ font-family: "Monaco", "Consolas", monospace;
+ font-size: 0.85rem;
+ user-select: all;
+ }
+
+ .guide-content code:hover {
+ background: rgba(59, 130, 246, 0.15);
+ }
</style>
</head>
<body>
<div class="app-container">
<div class="sidebar">
<div class="logo">Klic Studio</div>
- <div class="slogan">
- AI Video Translation & Dubbing by Krillin AI
- </div>
+ <div class="slogan">AI Video Translation & Dubbing by Krillin AI</div>
<div class="nav">
<button class="nav-btn active" id="nav-workbench">
工作台 Dashboard
</button>
+ <button class="nav-btn" id="nav-llm-config">
+ LLM 配置 LLM Config
+ </button>
<button class="nav-btn" id="nav-config">设置 Settings</button>
</div>
<div class="sidebar-bottom">
@@ -462,7 +623,8 @@
margin: 0 0 32px 0;
"
>
- 视频翻译配音<br> Video Translation & Dubbing
+ 视频翻译配音<br />
+ Video Translation & Dubbing
</h1>
<!-- 视频输入区域 -->
@@ -511,7 +673,9 @@
<h3 class="card-title">2. 字幕设置 Subtitle Settings</h3>
<div class="form-row">
<div class="form-group">
- <label class="form-label">源语言<br />Original Language:</label>
+ <label class="form-label"
+ >源语言<br />Original Language:</label
+ >
<select id="source-language" class="form-select">
<option value="zh_cn">简体中文</option>
<option value="en">English</option>
@@ -524,9 +688,7 @@
</select>
</div>
<div class="form-group">
- <label class="form-label"
- >翻译成<br />Translate To:</label
- >
+ <label class="form-label">翻译成<br />Translate To:</label>
<select id="target-language" class="form-select">
<option value="zh_cn">简体中文</option>
<option value="zh_tw">繁體中文</option>
@@ -643,12 +805,8 @@
class="form-select"
style="width: 200px; margin-left: 16px"
>
- <option value="top">
- 翻译在上 Translation Above
- </option>
- <option value="bottom">
- 翻译在下 Translation Below
- </option>
+ <option value="top">翻译在上 Translation Above</option>
+ <option value="bottom">翻译在下 Translation Below</option>
</select>
</div>
@@ -662,7 +820,7 @@
<!-- 配音设置区域 -->
<div class="card">
- <h3 class="card-title">3. 配音设置 Dubbing Settings </h3>
+ <h3 class="card-title">3. 配音设置 Dubbing Settings</h3>
<div class="form-group">
<label class="checkbox-item">
<input type="checkbox" id="voiceover-toggle" />
@@ -688,17 +846,13 @@
class="form-input"
style="width: 300px"
/>
- <span class="hint"
- >(Aliyun TTS Supported)</span
- >
+ <span class="hint">(Aliyun TTS Supported)</span>
</div>
</div>
<!-- 视频合成设置 -->
<div class="card">
- <h3 class="card-title">
- 4. 视频合成设置 Composition Settings
- </h3>
+ <h3 class="card-title">4. 视频合成设置 Composition Settings</h3>
<div class="form-group">
<label class="checkbox-item">
<input type="checkbox" id="embed-subtitle-toggle" />
@@ -710,11 +864,11 @@
style="width: 200px; margin-left: 16px"
disabled
>
- <option value="horizontal">横屏输出 Landscape(16:9)</option>
- <option value="vertical">竖屏输出 Portrait(9:16)</option>
- <option value="all">
- 横屏+竖屏 (Landscape+Portrait)
+ <option value="horizontal">
+ 横屏输出 Landscape(16:9)
</option>
+ <option value="vertical">竖屏输出 Portrait(9:16)</option>
+ <option value="all">横屏+竖屏 (Landscape+Portrait)</option>
</select>
</div>
<div id="subtitle-text-inputs" class="hidden">
@@ -755,6 +909,150 @@
<div id="downloadLinks" class="download-links hidden"></div>
</div>
</div>
+ <div id="llm-config" style="display: none">
+ <div class="card">
+ <h3 class="card-title">API 供应商</h3>
+ <p class="card-subtitle">点击下方卡片快速跳转到对应平台购买API</p>
+
+ <div class="provider-grid">
+ <div
+ class="provider-card qwen"
+ onclick="window.open('https://bailian.console.aliyun.com/', '_blank')"
+ >
+ <div class="provider-icon">
+ <img
+ src="./source/qwen-color.svg"
+ alt="通义千问"
+ width="24"
+ height="24"
+ />
+ </div>
+ <div class="provider-name">通义千问 Qwen</div>
+ <div class="provider-desc">阿里云大模型服务</div>
+ </div>
+
+ <div
+ class="provider-card openai"
+ onclick="window.open('https://platform.openai.com/', '_blank')"
+ >
+ <div class="provider-icon">
+ <img
+ src="./source/openai.svg"
+ alt="OpenAI"
+ width="24"
+ height="24"
+ />
+ </div>
+ <div class="provider-name">OpenAI</div>
+ <div class="provider-desc">GPT模型API服务</div>
+ </div>
+
+ <div
+ class="provider-card deepseek"
+ onclick="window.open('https://platform.deepseek.com/', '_blank')"
+ >
+ <div class="provider-icon">
+ <img
+ src="./source/deepseek-color.svg"
+ alt="DeepSeek"
+ width="24"
+ height="24"
+ />
+ </div>
+ <div class="provider-name">DeepSeek</div>
+ <div class="provider-desc">高性价比AI模型</div>
+ </div>
+
+ <div
+ class="provider-card siliconcloud"
+ onclick="window.open('https://siliconflow.cn/', '_blank')"
+ >
+ <div class="provider-icon">
+ <img
+ src="./source/siliconcloud-color.svg"
+ alt="SiliconCloud"
+ width="24"
+ height="24"
+ />
+ </div>
+ <div class="provider-name">SiliconCloud</div>
+ <div class="provider-desc">硅基流动</div>
+ </div>
+ </div>
+ </div>
+
+ <!-- LLM 配置 -->
+ <div class="card">
+ <h3 class="card-title">LLM 配置 LLM Config</h3>
+ <div class="form-group">
+ <label class="form-label">API Base URL:</label>
+ <input
+ type="url"
+ id="llm-base-url"
+ placeholder="https://api.openai.com/v1"
+ class="form-input"
+ />
+ </div>
+ <div class="form-group">
+ <label class="form-label">API Key:</label>
+ <input
+ type="password"
+ id="llm-api-key"
+ placeholder="sk-..."
+ class="form-input"
+ />
+ </div>
+ <div class="form-group">
+ <label class="form-label">模型名称 Model name:</label>
+ <input
+ type="text"
+ id="llm-model"
+ value="gpt-3.5-turbo"
+ class="form-input"
+ />
+ </div>
+ </div>
+
+ <!-- 使用指南 -->
+ <div class="card">
+ <h3 class="card-title">使用指南</h3>
+ <p class="card-subtitle">LLM API配置说明(可复制文本)</p>
+
+ <div class="guide-content">
+ <h4>1. API Base URL:</h4>
+ <ul>
+ <li>OpenAI官方:<code>https://api.openai.com/v1</code></li>
+ <li>
+ 阿里云百炼:<code
+ >https://dashscope.aliyuncs.com/compatible-mode/v1</code
+ >
+ </li>
+ <li>DeepSeek:<code>https://api.deepseek.com/v1</code></li>
+ <li>SiliconFlow<code>https://api.siliconflow.cn/v1</code></li>
+ </ul>
+
+ <h4>2. API Key:</h4>
+ <ul>
+ <li>在对应平台的控制台中获取</li>
+ <li>请妥善保管,避免泄露</li>
+ </ul>
+
+ <h4>3. 模型名称:</h4>
+ <ul>
+ <li>OpenAI:gpt-3.5-turbo, gpt-4, gpt-4-turbo...</li>
+ <li>阿里云:qwen-turbo, qwen-plus, qwen-max...</li>
+ <li>DeepSeek:deepseek-chat, deepseek-coder...</li>
+ <li>SiliconFlow:DeepSeek-R1, DeepSeek-V3, QwQ-32B...</li>
+ </ul>
+
+ <h4>4. 使用建议:</h4>
+ <ul>
+ <li>根据实际需求选择合适的模型</li>
+ <li>注意API调用费用</li>
+ </ul>
+ </div>
+ </div>
+ </div>
<div id="page-config" style="display: none">
<h1
style="
@@ -886,7 +1184,7 @@
</div>
<!-- LLM配置 -->
- <div class="card">
+ <!-- <div class="card">
<h3 class="card-title">LLM 配置 LLM Config</h3>
<div class="form-group">
<label class="form-label">API Base URL:</label>
@@ -915,7 +1213,7 @@
class="form-input"
/>
</div>
- </div>
+ </div> -->
<!-- 语音识别配置 -->
<div class="card">
@@ -933,7 +1231,9 @@
<div class="form-group">
<label class="form-label">
GPU加速 Enable Gpu Acceleration
- <span class="hint">仅 FasterWhisper 生效(Only FasterWhisper)</span>
+ <span class="hint"
+ >仅 FasterWhisper 生效(Only FasterWhisper)</span
+ >
</label>
<select id="gpu-acceleration" class="form-select">
<option value="true">是 Yes</option>
@@ -1191,10 +1491,18 @@
const navBtns = document.querySelectorAll(".nav-btn");
const pageWorkbench = document.getElementById("page-workbench");
const pageConfig = document.getElementById("page-config");
+ const pageLLMConfig = document.getElementById("llm-config");
navBtns.forEach((btn) => {
btn.onclick = async () => {
const previousPage = currentActivePage;
- const newPage = btn.id === "nav-workbench" ? "workbench" : "config";
+ let newPage;
+ if (btn.id === "nav-workbench") {
+ newPage = "workbench";
+ } else if (btn.id === "nav-llm-config") {
+ newPage = "llm-config";
+ } else if (btn.id === "nav-config") {
+ newPage = "config";
+ }
// 如果从配置页面切换到工作台页面,自动保存配置
if (previousPage === "config" && newPage === "workbench") {
@@ -1216,11 +1524,16 @@
btn.classList.add("active");
currentActivePage = newPage;
+ pageWorkbench.style.display = "none";
+ pageConfig.style.display = "none";
+ pageLLMConfig.style.display = "none";
+
+ // 显示对应页面
if (btn.id === "nav-workbench") {
pageWorkbench.style.display = "";
- pageConfig.style.display = "none";
- } else {
- pageWorkbench.style.display = "none";
+ } else if (btn.id === "nav-llm-config") {
+ pageLLMConfig.style.display = "";
+ } else if (btn.id === "nav-config") {
pageConfig.style.display = "";
loadConfig();
}
diff --git a/static/source/deepseek-color.png b/static/source/deepseek-color.png
new file mode 100644
index 00000000..2ccca71d
Binary files /dev/null and b/static/source/deepseek-color.png differ
diff --git a/static/source/deepseek-color.svg b/static/source/deepseek-color.svg
new file mode 100644
index 00000000..3fc23024
--- /dev/null
+++ b/static/source/deepseek-color.svg
@@ -0,0 +1 @@
+<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>DeepSeek</title><path d="M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z" fill="#4D6BFE"></path></svg>
\ No newline at end of file
diff --git a/static/source/deepseek-text.svg b/static/source/deepseek-text.svg
new file mode 100644
index 00000000..8e137b5b
--- /dev/null
+++ b/static/source/deepseek-text.svg
@@ -0,0 +1 @@
+<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 131 24" xmlns="http://www.w3.org/2000/svg"><title>DeepSeek</title><path d="M117.986 0h-3.21v19.404h3.21V0zM8.7 5.215h1.83v2.838H8.7c-1.135 0-2.28.282-3.019 1.068-.738.785-1.016 1.99-1.016 3.194s.267 2.408 1.016 3.193c.75.786 1.884 1.068 3.018 1.068 1.135 0 2.28-.282 3.018-1.068.739-.785 1.017-1.99 1.017-3.193V.649h3.21v18.755h-3.21V18.21h-.589a3.498 3.498 0 01-.192.199c-.803.733-2.034.995-3.243.995-1.894 0-3.788-.472-5.03-1.78C2.44 16.314 2 14.303 2 12.303c0-2 .45-4 1.68-5.32 1.242-1.308 3.136-1.77 5.02-1.77zM57.564 18.9h-1.83v-2.837h1.83c1.134 0 2.28-.283 3.017-1.068.739-.785 1.017-1.99 1.017-3.194s-.267-2.408-1.017-3.194c-.749-.785-1.883-1.068-3.017-1.068s-2.28.283-3.018 1.068c-.738.786-1.017 1.99-1.017 3.194v11.655h-3.21V4.712h3.21v1.194h.59a3.42 3.42 0 01.186-.194l.005-.005c.803-.733 2.034-.995 3.243-.995 1.895 0 3.788.471 5.03 1.78 1.241 1.31 1.68 3.32 1.68 5.32 0 2-.45 4-1.68 5.319-1.23 1.32-3.135 1.77-5.019 1.77zM32.05 13.204v-1.14c0-2.064-.46-4.137-1.754-5.498-1.285-1.362-3.264-1.843-5.223-1.843-1.958 0-3.928.492-5.222 1.843-1.295 1.35-1.755 3.434-1.755 5.497 0 2.063.47 4.136 1.755 5.498 1.284 1.36 3.264 1.843 5.222 1.843 1.959 0 3.938-.493 5.223-1.843.663-.692 1.102-1.582 1.38-2.566h-3.168a5.026 5.026 0 01-.3.367c-.77.816-1.958 1.11-3.135 1.11-1.177 0-2.365-.304-3.136-1.11-.77-.807-1.048-2.063-1.048-3.299 0-1.236.278-2.482 1.049-3.298.77-.817 1.958-1.11 3.135-1.11 1.177 0 2.365.293 3.136 1.11.535.565.834 1.34.963 2.167H23.5v2.272h8.55zM48.168 12.063v1.141h-8.55v-2.272h5.671c-.129-.827-.428-1.602-.963-2.167-.77-.817-1.959-1.11-3.136-1.11s-2.365.293-3.136 1.11c-.77.816-1.049 2.063-1.049 3.298 0 1.236.279 2.492 1.05 3.299.77.806 1.958 1.11 3.135 1.11 1.177 0 2.365-.294 3.136-1.11.107-.116.203-.241.299-.367h3.168c-.278.985-.717 1.874-1.38 2.566-1.285 1.35-3.264 1.843-5.223 1.843s-3.938-.482-5.222-1.843c-1.285-1.362-1.756-3.435-1.756-5.498s.46-4.147 1.755-5.497c1.296-1.351 3.264-1.843 5.223-1.843s3.938.481 5.222 1.843c1.296 1.36 1.756 3.434 1.756 5.497zM78.635 18.315c-1.284.806-3.263 1.089-5.222 1.089-1.958 0-3.917-.294-5.212-1.09-1.295-.795-1.755-2.03-1.755-3.246h3.767c0 .472.225.953.824 1.257.6.304 1.54.419 2.462.419.92 0 1.851-.115 2.46-.42.611-.303.825-.784.825-1.256 0-.47-.214-.952-.824-1.256-.61-.304-1.627-.419-2.547-.419-1.777 0-3.563-.293-4.73-1.09-1.167-.795-1.584-2.03-1.584-3.245 0-1.215.417-2.44 1.584-3.246 1.167-.807 2.953-1.09 4.73-1.09 1.776 0 3.564.294 4.73 1.09 1.167.795 1.584 2.031 1.584 3.246h-3.264c0-.471-.203-.942-.749-1.257-.546-.303-1.391-.419-2.226-.419s-1.68.105-2.226.42c-.556.303-.75.785-.75 1.256 0 .47.204.942.75 1.256.545.304 1.316.42 2.151.42 1.959 0 3.938.292 5.222 1.088 1.295.796 1.756 2.032 1.756 3.246 0 1.215-.471 2.44-1.756 3.247zM96.507 12.063v1.141h-8.55v-2.272h5.672c-.129-.827-.429-1.602-.963-2.167-.771-.817-1.959-1.11-3.136-1.11s-2.366.293-3.136 1.11c-.77.816-1.048 2.063-1.048 3.298 0 1.236.278 2.492 1.048 3.299.77.806 1.959 1.11 3.135 1.11 1.178 0 2.366-.294 3.137-1.11.106-.116.203-.241.3-.367h3.167c-.279.985-.717 1.874-1.38 2.566-1.284 1.35-3.265 1.843-5.224 1.843-1.957 0-3.938-.482-5.222-1.843-1.284-1.362-1.754-3.435-1.754-5.498s.46-4.147 1.754-5.497c1.296-1.351 3.265-1.843 5.222-1.843 1.96 0 3.94.481 5.224 1.843 1.294 1.36 1.754 3.434 1.754 5.497zM112.624 13.204v-1.14c0-2.064-.46-4.137-1.754-5.498-1.285-1.362-3.265-1.843-5.223-1.843-1.959 0-3.928.492-5.222 1.843-1.296 1.35-1.756 3.434-1.756 5.497 0 2.063.471 4.136 1.756 5.498 1.284 1.36 3.263 1.843 5.222 1.843 1.958 0 3.938-.493 5.223-1.843.663-.692 1.102-1.582 1.38-2.566h-3.168l-.012.016c-.093.12-.185.24-.288.35-.77.817-1.957 1.11-3.135 1.11-1.177 0-2.365-.303-3.136-1.11-.77-.806-1.049-2.062-1.049-3.298 0-1.236.279-2.482 1.049-3.298.771-.817 1.959-1.11 3.136-1.11 1.178 0 2.365.293 3.135 1.11.536.565.836 1.34.964 2.167h-5.672v2.272h8.55zM128.73 19.404l-5.264-7.78 5.264-6.252h-3.97l-5.265 6.251 5.265 7.78h3.97z"></path></svg>
\ No newline at end of file
diff --git a/static/source/openai-text.svg b/static/source/openai-text.svg
new file mode 100644
index 00000000..204161f3
--- /dev/null
+++ b/static/source/openai-text.svg
@@ -0,0 +1 @@
+<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 84 24" xmlns="http://www.w3.org/2000/svg"><title>OpenAI</title><path d="M2 10.955c0 5.276 3.376 8.955 8.054 8.955 4.678 0 8.054-3.679 8.054-8.955S14.732 2 10.054 2C5.423 2 2.068 5.606 2 10.797L2 10.955zm13.021 0c0 3.775-2.05 6.22-4.967 6.22-2.918 0-4.968-2.445-4.968-6.22 0-3.776 2.05-6.22 4.968-6.22 2.917 0 4.967 2.444 4.967 6.22zm11.778 8.955c3.545 0 5.57-3.001 5.57-6.607 0-3.607-2.025-6.608-5.57-6.608-1.64 0-2.845.654-3.64 1.598V6.937h-2.894V24h2.893v-5.688c.796.944 2.002 1.598 3.641 1.598zm-3.713-6.97c0-2.397 1.35-3.703 3.135-3.703 2.097 0 3.23 1.645 3.23 4.066 0 2.42-1.133 4.066-3.23 4.066-1.785 0-3.135-1.332-3.135-3.68v-.75zM40.2 19.91c2.532 0 4.533-1.331 5.425-3.558l-2.483-.944c-.386 1.307-1.52 2.033-2.942 2.033-1.857 0-3.159-1.331-3.376-3.51h8.874v-.967c0-3.485-1.953-6.269-5.619-6.269-3.665 0-6.028 2.88-6.028 6.608 0 3.92 2.532 6.607 6.15 6.607zm-.145-10.77c1.833 0 2.701 1.21 2.725 2.614H36.97c.434-1.719 1.591-2.614 3.086-2.614zm7.814 10.504h2.894v-7.455c0-1.815 1.326-2.783 2.628-2.783 1.591 0 2.218 1.137 2.218 2.71v7.528h2.894V11.27c0-2.735-1.592-4.575-4.244-4.575-1.64 0-2.773.75-3.496 1.598V6.937h-2.894v12.707zM66.978 2.266l-6.56 17.378h3.063l1.471-3.97h7.475l1.495 3.97h3.11L70.475 2.266h-3.496zm1.687 3.437l2.75 7.26h-5.45l2.7-7.26zM82 2.317h-3.086v17.377H82V2.317z"></path></svg>
\ No newline at end of file
diff --git a/static/source/openai.png b/static/source/openai.png
new file mode 100644
index 00000000..bf945a33
Binary files /dev/null and b/static/source/openai.png differ
diff --git a/static/source/openai.svg b/static/source/openai.svg
new file mode 100644
index 00000000..50d94d6c
--- /dev/null
+++ b/static/source/openai.svg
@@ -0,0 +1 @@
+<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>OpenAI</title><path d="M21.55 10.004a5.416 5.416 0 00-.478-4.501c-1.217-2.09-3.662-3.166-6.05-2.66A5.59 5.59 0 0010.831 1C8.39.995 6.224 2.546 5.473 4.838A5.553 5.553 0 001.76 7.496a5.487 5.487 0 00.691 6.5 5.416 5.416 0 00.477 4.502c1.217 2.09 3.662 3.165 6.05 2.66A5.586 5.586 0 0013.168 23c2.443.006 4.61-1.546 5.361-3.84a5.553 5.553 0 003.715-2.66 5.488 5.488 0 00-.693-6.497v.001zm-8.381 11.558a4.199 4.199 0 01-2.675-.954c.034-.018.093-.05.132-.074l4.44-2.53a.71.71 0 00.364-.623v-6.176l1.877 1.069c.02.01.033.029.036.05v5.115c-.003 2.274-1.87 4.118-4.174 4.123zM4.192 17.78a4.059 4.059 0 01-.498-2.763c.032.02.09.055.131.078l4.44 2.53c.225.13.504.13.73 0l5.42-3.088v2.138a.068.068 0 01-.027.057L9.9 19.288c-1.999 1.136-4.552.46-5.707-1.51h-.001zM3.023 8.216A4.15 4.15 0 015.198 6.41l-.002.151v5.06a.711.711 0 00.364.624l5.42 3.087-1.876 1.07a.067.067 0 01-.063.005l-4.489-2.559c-1.995-1.14-2.679-3.658-1.53-5.63h.001zm15.417 3.54l-5.42-3.088L14.896 7.6a.067.067 0 01.063-.006l4.489 2.557c1.998 1.14 2.683 3.662 1.529 5.633a4.163 4.163 0 01-2.174 1.807V12.38a.71.71 0 00-.363-.623zm1.867-2.773a6.04 6.04 0 00-.132-.078l-4.44-2.53a.731.731 0 00-.729 0l-5.42 3.088V7.325a.068.068 0 01.027-.057L14.1 4.713c2-1.137 4.555-.46 5.707 1.513.487.833.664 1.809.499 2.757h.001zm-11.741 3.81l-1.877-1.068a.065.065 0 01-.036-.051V6.559c.001-2.277 1.873-4.122 4.181-4.12.976 0 1.92.338 2.671.954-.034.018-.092.05-.131.073l-4.44 2.53a.71.71 0 00-.365.623l-.003 6.173v.002zm1.02-2.168L12 9.25l2.414 1.375v2.75L12 14.75l-2.415-1.375v-2.75z"></path></svg>
\ No newline at end of file
diff --git a/static/source/qwen-color.png b/static/source/qwen-color.png
new file mode 100644
index 00000000..d9feba46
Binary files /dev/null and b/static/source/qwen-color.png differ
diff --git a/static/source/qwen-color.svg b/static/source/qwen-color.svg
new file mode 100644
index 00000000..33b3f645
--- /dev/null
+++ b/static/source/qwen-color.svg
@@ -0,0 +1 @@
+<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Qwen</title><path d="M12.604 1.34c.393.69.784 1.382 1.174 2.075a.18.18 0 00.157.091h5.552c.174 0 .322.11.446.327l1.454 2.57c.19.337.24.478.024.837-.26.43-.513.864-.76 1.3l-.367.658c-.106.196-.223.28-.04.512l2.652 4.637c.172.301.111.494-.043.77-.437.785-.882 1.564-1.335 2.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099 0 00-.081.05 575.097 575.097 0 01-2.705 4.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537 0 01-.465-.271l-1.335-2.323a.09.09 0 00-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543 0 01-.002-.54l1.207-2.12a.198.198 0 000-.197 550.951 550.951 0 01-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625 1.387-2.436.132-.234.304-.334.584-.335a338.3 338.3 0 012.589-.001.124.124 0 00.107-.063l2.806-4.895a.488.488 0 01.422-.246c.524-.001 1.053 0 1.583-.006L11.704 1c.341-.003.724.032.9.34zm-3.432.403a.06.06 0 00-.052.03L6.254 6.788a.157.157 0 01-.135.078H3.253c-.056 0-.07.025-.041.074l5.81 10.156c.025.042.013.062-.034.063l-2.795.015a.218.218 0 00-.2.116l-1.32 2.31c-.044.078-.021.118.068.118l5.716.008c.046 0 .08.02.104.061l1.403 2.454c.046.081.092.082.139 0l5.006-8.76.783-1.382a.055.055 0 01.096 0l1.424 2.53a.122.122 0 00.107.062l2.763-.02a.04.04 0 00.035-.02.041.041 0 000-.04l-2.9-5.086a.108.108 0 010-.113l.293-.507 1.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059 0-.073-.026-.043-.077l1.434-2.505a.107.107 0 000-.114L9.225 1.774a.06.06 0 00-.053-.031zm6.29 8.02c.046 0 .058.02.034.06l-.832 1.465-2.613 4.585a.056.056 0 01-.05.029.058.058 0 01-.05-.029L8.498 9.841c-.02-.034-.01-.052.028-.054l.216-.012 6.722-.012z" fill="url(#lobe-icons-qwen-fill)" fill-rule="nonzero"></path><defs><linearGradient id="lobe-icons-qwen-fill" x1="0%" x2="100%" y1="0%" y2="0%"><stop offset="0%" stop-color="#6336E7" stop-opacity=".84"></stop><stop offset="100%" stop-color="#6F69F7" stop-opacity=".84"></stop></linearGradient></defs></svg>
\ No newline at end of file
diff --git a/static/source/qwen-text.svg b/static/source/qwen-text.svg
new file mode 100644
index 00000000..8d478370
--- /dev/null
+++ b/static/source/qwen-text.svg
@@ -0,0 +1 @@
+<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 75 24" xmlns="http://www.w3.org/2000/svg"><title>Qwen</title><path d="M11.425 14.13h3.642l1.529 1.795a7.89 7.89 0 002.166-2.832 8.36 8.36 0 00.771-3.562c0-2.03-.624-3.664-1.874-4.905-1.24-1.25-2.884-1.874-4.931-1.874-1.028 0-1.99.186-2.885.558A6.99 6.99 0 007.45 4.932 8.576 8.576 0 005.656 7.67a8.354 8.354 0 00-.625 3.19c0 2.003.611 3.643 1.834 4.919 1.223 1.276 2.779 1.914 4.666 1.914.39 0 .793-.031 1.21-.093.425-.062.868-.16 1.329-.293l-2.645-3.177zM18.07 22l-2.127-2.46c-.753.293-1.48.51-2.18.652a9.84 9.84 0 01-2.073.226c-2.97 0-5.326-.85-7.072-2.552C2.873 16.164 2 13.865 2 10.966c0-1.577.28-3.052.837-4.426a10.148 10.148 0 012.406-3.576A10.427 10.427 0 018.713.758C10.025.253 11.429 0 12.927 0c2.915 0 5.25.86 7.005 2.579 1.755 1.72 2.632 4.01 2.632 6.872 0 1.764-.354 3.399-1.063 4.905a10.156 10.156 0 01-3.031 3.776L21.714 22H18.07zm5.743-14.675h2.884l2.047 6.433.054.16c.248.789.38 1.373.399 1.755.097-.302.221-.62.372-.958.16-.345.354-.713.585-1.103l4.227-7.218 2.06 7.43c.08.275.146.559.2.851.053.293.097.63.133 1.01.132-.372.265-.708.398-1.01.142-.3.28-.562.412-.784l3.816-6.567h3.243L36.097 20.71l-2.127-7.045a8.683 8.683 0 01-.213-.798 17.846 17.846 0 01-.146-.97 69.17 69.17 0 01-.519 1.063c-.15.302-.265.514-.345.638l-4.28 7.112-4.653-13.385zm24.392 4.785h6.5c-.026-.85-.292-1.52-.797-2.007-.496-.497-1.166-.745-2.008-.745-.957 0-1.768.248-2.432.745-.665.496-1.086 1.165-1.263 2.007zm6.34 3.948l2.061 1.608c-.735.966-1.533 1.67-2.392 2.114-.86.443-1.848.665-2.965.665-1.87 0-3.38-.563-4.533-1.689-1.152-1.134-1.728-2.623-1.728-4.466 0-2.162.66-3.935 1.98-5.317 1.33-1.391 3.018-2.087 5.066-2.087 1.71 0 3.07.532 4.08 1.595 1.02 1.055 1.53 2.473 1.53 4.254 0 .15-.01.345-.027.585-.01.23-.027.51-.054.837h-9.61c0 1.143.288 2.056.864 2.738.576.674 1.342 1.01 2.3 1.01.664 0 1.293-.159 1.887-.478a4.633 4.633 0 001.542-1.369zm14.317 3.868l.957-7.244c.018-.133.031-.27.04-.412.009-.151.013-.368.013-.652 0-.824-.2-1.453-.598-1.887-.399-.444-.98-.665-1.741-.665-1.188 0-2.118.385-2.792 1.156-.673.763-1.112 1.937-1.316 3.523l-.797 6.181H59.77l1.661-12.601h2.752l-.213 1.515c.727-.664 1.476-1.156 2.247-1.475a6.5 6.5 0 012.486-.479c1.293 0 2.3.341 3.017 1.024.727.673 1.09 1.622 1.09 2.845 0 .31-.018.673-.053 1.09-.036.407-.089.886-.16 1.435l-.877 6.647h-2.858z"></path></svg>
\ No newline at end of file
diff --git a/static/source/siliconcloud-color.png b/static/source/siliconcloud-color.png
new file mode 100644
index 00000000..f27a75b6
Binary files /dev/null and b/static/source/siliconcloud-color.png differ
diff --git a/static/source/siliconcloud-color.svg b/static/source/siliconcloud-color.svg
new file mode 100644
index 00000000..6b5f6d80
--- /dev/null
+++ b/static/source/siliconcloud-color.svg
@@ -0,0 +1 @@
+<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>SiliconCloud</title><path clip-rule="evenodd" d="M22.956 6.521H12.522c-.577 0-1.044.468-1.044 1.044v3.13c0 .577-.466 1.044-1.043 1.044H1.044c-.577 0-1.044.467-1.044 1.044v4.174C0 17.533.467 18 1.044 18h10.434c.577 0 1.044-.467 1.044-1.043v-3.13c0-.578.466-1.044 1.043-1.044h9.391c.577 0 1.044-.467 1.044-1.044V7.565c0-.576-.467-1.044-1.044-1.044z" fill="#6E29F6" fill-rule="evenodd"></path></svg>
\ No newline at end of file
diff --git a/static/source/siliconcloud-text.svg b/static/source/siliconcloud-text.svg
new file mode 100644
index 00000000..fe541bb0
--- /dev/null
+++ b/static/source/siliconcloud-text.svg
@@ -0,0 +1 @@
+<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 140 24" xmlns="http://www.w3.org/2000/svg"><title>SiliconCloud</title><path clip-rule="evenodd" d="M13.075 16.36c0-4.47-10.605-.758-10.605-8.238 0-3.93 3.527-5.746 6.673-5.746 2.333 0 4.313.731 6.184 2.276l-1.438 2.44c-1.438-1.355-2.956-1.979-4.746-1.979-1.628 0-3.553.895-3.553 2.9 0 4.472 10.605.758 10.605 8.238 0 4.012-3.608 5.746-6.954 5.746-2.848 0-5.506-1.056-7.241-3.278l1.501-2.575c1.735 2.168 3.58 3.116 5.722 3.116 1.817 0 3.852-.84 3.852-2.9zm5.495-8.236h2.984v13.551h-2.983V8.125zM20.063 2c1.004 0 1.763.732 1.763 1.762s-.76 1.761-1.763 1.761c-1.004 0-1.763-.732-1.763-1.761 0-1.03.76-1.762 1.763-1.762zm4.648.703h2.983v18.972H24.71V2.703zm6.146 5.421h2.983v13.551h-2.983V8.125zM32.347 2c1.004 0 1.763.732 1.763 1.762s-.76 1.761-1.763 1.761c-1.004 0-1.763-.732-1.763-1.761 0-1.03.76-1.762 1.763-1.762zm3.855 12.897c0-4.12 3.064-7.1 7.268-7.1 2.333 0 4.367 1.003 5.615 2.522l-2.224 1.813c-.732-.921-1.953-1.571-3.39-1.571-2.468 0-4.285 1.788-4.285 4.336s1.817 4.337 4.284 4.337c1.438 0 2.658-.65 3.39-1.572l2.225 1.817C47.837 20.995 45.695 22 43.47 22c-4.204 0-7.268-2.981-7.268-7.101v-.002zm21.01-4.336c-2.495 0-4.285 1.896-4.285 4.336 0 2.44 1.79 4.337 4.285 4.337s4.285-1.897 4.285-4.337c0-2.44-1.79-4.336-4.285-4.336zm0-2.765c4.122 0 7.268 3.01 7.268 7.101 0 4.093-3.146 7.101-7.268 7.101-4.123 0-7.268-3.008-7.268-7.1 0-4.093 3.145-7.102 7.268-7.102zm12.57 6.589v7.29H66.8V8.125h2.983v2.14C70.568 8.64 72.303 7.8 74.094 7.8c3.064 0 5.397 2.114 5.397 6.097v7.29h-2.984v-7.67c0-2.194-1.302-3.388-3.2-3.388-2.034 0-3.526 1.355-3.526 3.768l.001.488zm16.017 7.29h-3.118V2.703h12.07V5.55H85.8v5.42h7.974v2.792H85.8v7.914zM96.592 2.703h2.983v18.972h-2.983V2.703zm12.555 7.858c-2.495 0-4.285 1.896-4.285 4.336 0 2.44 1.79 4.337 4.285 4.337s4.284-1.897 4.284-4.337c0-2.44-1.789-4.336-4.284-4.336zm0-2.765c4.122 0 7.268 3.01 7.268 7.101 0 4.093-3.146 7.101-7.268 7.101-4.123 0-7.268-3.008-7.268-7.1 0-4.093 3.145-7.102 7.268-7.102zm25.933.328H138l-3.701 13.551h-3.961l-2.603-10.083-2.775 10.083h-3.961l-3.556-13.551h2.977l2.661 10.816 2.949-10.817h3.412l2.833 10.816 2.805-10.815z"></path></svg>
\ No newline at end of file