Send Qwen VL sampling args so Recommend does not fail on missing top_k/top_p/min_p/repeat_penalty.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-08-27 17:17:51 -05:00
co-authored by Cursor
parent df5ac24622
commit 2bebeea526
2 changed files with 9 additions and 1 deletions
+4
View File
@@ -18,6 +18,10 @@ export function buildVisionPromptWorkflow(params: {
graph[TEXT_NODE].inputs.system_prompt = params.systemPrompt
graph[TEXT_NODE].inputs.prompt = params.draftPrompt
graph[TEXT_NODE].inputs.seed = Number.isFinite(params.seed) ? Number(params.seed) : Math.floor(Math.random() * 2_147_483_647)
graph[TEXT_NODE].inputs.top_k = 40
graph[TEXT_NODE].inputs.top_p = 0.95
graph[TEXT_NODE].inputs.min_p = 0.05
graph[TEXT_NODE].inputs.repeat_penalty = 1.1
}
return graph
}