专长:增强 AI 设置和搜索功能

- 更新了 AI 设置页面,统一了 AI 补充、自然语言搜索、入站预处理和标签标准化的配置。
- 在编辑页面新增了 AI 标签和笔记标准化板块,包括建议预览及应用功能。
- 改进的搜索页面,支持带有示例的自然语言查询和模糊选择下拉菜单。
- 增强的搜索结果显示,包含更多匹配信息和查看 AI 搜索过程的模态。
- 更新新组件样式,优化布局以提升用户体验。
This commit is contained in:
2026-03-13 19:47:29 +08:00
parent 168f5fe49c
commit 8e0bd4f995
6 changed files with 1149 additions and 37 deletions

View File

@@ -10,7 +10,7 @@
<header class="hero slim">
<div>
<h1>AI参数设置</h1>
<p>在此修改硅基流动 API 补货建议参数</p>
<p>在此统一配置 AI 补货、自然语言搜索、入库预处理与标签标准化参数</p>
</div>
<div class="hero-actions">
<a class="btn btn-light" href="{{ url_for('types_page') }}">返回仓库概览</a>
@@ -27,7 +27,8 @@
<section class="panel">
<form class="form-grid" method="post">
<h2 class="full">AI补货建议参数</h2>
<h2 class="full">通用 AI 参数</h2>
<p class="hint full">以下参数会同时用于 AI 入库预处理、自然语言搜索、重复巡检、补货建议、标签与备注标准化。</p>
<label>
API URL *
<input type="text" name="api_url" required value="{{ settings.api_url }}" placeholder="https://api.siliconflow.cn/v1/chat/completions">