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
+5 -1
View File
@@ -31,7 +31,11 @@
"special_captioning_token": "", "special_captioning_token": "",
"seed": 0, "seed": 0,
"temperature": 0.6, "temperature": 0.6,
"max_tokens": 4096 "max_tokens": 4096,
"top_k": 40,
"top_p": 0.95,
"min_p": 0.05,
"repeat_penalty": 1.1
}, },
"class_type": "GGUF_VLM_ImageToText", "class_type": "GGUF_VLM_ImageToText",
"_meta": { "title": "GGUF VLM Image to Text" } "_meta": { "title": "GGUF VLM Image to Text" }
+4
View File
@@ -18,6 +18,10 @@ export function buildVisionPromptWorkflow(params: {
graph[TEXT_NODE].inputs.system_prompt = params.systemPrompt graph[TEXT_NODE].inputs.system_prompt = params.systemPrompt
graph[TEXT_NODE].inputs.prompt = params.draftPrompt 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.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 return graph
} }