fix: AI 流式接口 max_tokens 提升至 4096

This commit is contained in:
MikiVL 2026-05-05 04:03:42 +08:00
parent c2e80304d6
commit 27ebe43e54

View File

@ -153,7 +153,7 @@ app.post('/api/ai/stream', async (c) => {
const stream = await aiClient.messages.stream({
model: modelId,
max_tokens: 1024,
max_tokens: 4096,
system: buildSystemPrompt(req.type, req.noteContent),
messages: buildMessages(req),
})