Harden Exact reconcile and soften post-Generate warm.
Overwrite foreign steps/cfg in sparse patches when the user did not ask for params, and skip the cold-load path when Ollama already has the chat model resident. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+10
-4
@@ -81,10 +81,16 @@ export function exactKeysToForce(live, defaults, {
|
||||
if (want == null) {
|
||||
continue;
|
||||
}
|
||||
const eps = key === 'steps' ? 0.5 : 0.051;
|
||||
// Patch asked for a non-Exact number — honor it.
|
||||
if (patch && patch[key] != null && !numClose(patch[key], want, eps)) {
|
||||
continue;
|
||||
const eps = key === 'steps' ? 0.5 : 0.051;
|
||||
// Honor intentional non-Exact patch only when the user asked for params.
|
||||
// Sparse LLM echoes of live 20/7 must not block Exact (turbo/raw label -> numbers).
|
||||
if (
|
||||
userParamIntent
|
||||
&& patch
|
||||
&& patch[key] != null
|
||||
&& !numClose(patch[key], want, eps)
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
if (userParamIntent && sessionExact && sessionExact[key] != null) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user