fix: 标题生成禁用思考模式并增加max_tokens
This commit is contained in:
@@ -1023,7 +1023,8 @@ ${conversationText}`;
|
||||
body: JSON.stringify({
|
||||
model: CONFIG.model,
|
||||
messages: [{ role: 'user', content: titlePrompt }],
|
||||
max_tokens: 50
|
||||
max_tokens: 100,
|
||||
thinking: { type: 'disabled' } // 禁用思考模式,直接输出标题
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
@@ -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.5">
|
||||
<link rel="stylesheet" href="style.css?v=2.7.6">
|
||||
<link rel="manifest" href="manifest.json">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script src="marked.min.js?v=2.7.5"></script>
|
||||
<script src="app.js?v=2.7.5"></script>
|
||||
<script src="marked.min.js?v=2.7.6"></script>
|
||||
<script src="app.js?v=2.7.6"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user