新功能: - 创建AI聊天助手组件(AIChatWidget) - 支持文字+图片多模态对话 - 集成Gemini AI API - 支持图片编辑和内容生成 - 实时对话历史管理 - 优雅的UI设计,支持黑夜模式 技术实现: - 后端API代理Gemini API(/api/ai-chat) - 支持最多5张图片上传 - 流式响应处理 - 对话历史管理 - Base64图片处理 配置: - 在.env中添加Gemini API配置 - GEMINI_API_KEY - GEMINI_API_BASE_URL - GEMINI_MODEL 替换原弹幕功能,提供更强大的AI助手体验!
2 lines
976 B
HTML
Executable File
2 lines
976 B
HTML
Executable File
<!DOCTYPE html><html><body><li><a href="#" onclick="app.openTab(event, 'GenerateBg')"><span class="icon"><svg width="16" height="16" viewBox="0 0 24 24"><path d="M4 4h16v16H4V4z" stroke="currentColor" stroke-width="2" fill="none"/><path d="M12 8v8M8 12h8" stroke="currentColor" stroke-width="2"/></svg></span><div class="menu-text"><span class="menu-title">生成背景</span><span class="menu-desc">智能填充图片背景</span></div></a></li><li><a href="#" onclick="appExtensions.OcrTool.activate(event)"><span class="icon"><svg width="16" height="16" viewBox="0 0 24 24"><path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18" stroke="currentColor" stroke-width="2" fill="none"/><path d="M12 12h4m-4 4h4" stroke="currentColor" stroke-width="2"/></svg></span><div class="menu-text"><span class="menu-title">识别提取</span><span class="menu-desc">文档图片文字识别</span></div></a></li></body></html>
|