fix: 标题生成禁用思考模式并增加max_tokens

This commit is contained in:
2026-04-26 22:38:08 +08:00
parent 610ee8f409
commit 83bdab3205
2 changed files with 5 additions and 4 deletions

View File

@@ -1023,7 +1023,8 @@ ${conversationText}`;
body: JSON.stringify({ body: JSON.stringify({
model: CONFIG.model, model: CONFIG.model,
messages: [{ role: 'user', content: titlePrompt }], messages: [{ role: 'user', content: titlePrompt }],
max_tokens: 50 max_tokens: 100,
thinking: { type: 'disabled' } // 禁用思考模式,直接输出标题
}) })
}); });

View File

@@ -8,12 +8,12 @@
<meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0"> <meta http-equiv="Expires" content="0">
<title>AI助手</title> <title>AI助手</title>
<link rel="stylesheet" href="style.css?v=2.7.5"> <link rel="stylesheet" href="style.css?v=2.7.6">
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
<script src="marked.min.js?v=2.7.5"></script> <script src="marked.min.js?v=2.7.6"></script>
<script src="app.js?v=2.7.5"></script> <script src="app.js?v=2.7.6"></script>
</body> </body>
</html> </html>