fix: 搜索结果改为10个,深度思考和联网搜索可独立选择
This commit is contained in:
12
www/app.js
12
www/app.js
@@ -587,11 +587,6 @@ function openConversation(id) {
|
||||
thinkingBtn.addEventListener('click', () => {
|
||||
enableThinking = !enableThinking;
|
||||
thinkingBtn.classList.toggle('active', enableThinking);
|
||||
// 如果开启深度思考,关闭联网搜索(智谱思考模型不支持联网)
|
||||
if (enableThinking && enableSearch) {
|
||||
enableSearch = false;
|
||||
searchBtn.classList.remove('active');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -599,11 +594,6 @@ function openConversation(id) {
|
||||
searchBtn.addEventListener('click', () => {
|
||||
enableSearch = !enableSearch;
|
||||
searchBtn.classList.toggle('active', enableSearch);
|
||||
// 如果开启联网搜索,关闭深度思考
|
||||
if (enableSearch && enableThinking) {
|
||||
enableThinking = false;
|
||||
thinkingBtn.classList.remove('active');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -949,7 +939,7 @@ async function performSearch(query) {
|
||||
},
|
||||
body: JSON.stringify({
|
||||
query: query,
|
||||
max_results: 5,
|
||||
max_results: 10,
|
||||
include_raw_content: false
|
||||
})
|
||||
});
|
||||
|
||||
@@ -8,12 +8,12 @@
|
||||
<meta http-equiv="Pragma" content="no-cache">
|
||||
<meta http-equiv="Expires" content="0">
|
||||
<title>AI助手</title>
|
||||
<link rel="stylesheet" href="style.css?v=2.7.0">
|
||||
<link rel="stylesheet" href="style.css?v=2.7.1">
|
||||
<link rel="manifest" href="manifest.json">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script src="marked.min.js?v=2.7.0"></script>
|
||||
<script src="app.js?v=2.7.0"></script>
|
||||
<script src="marked.min.js?v=2.7.1"></script>
|
||||
<script src="app.js?v=2.7.1"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user