// Model overrides supersede previously recorded runtime model identity. // If runtime fields are stale (or the override changed), clear them so status // surfaces reflect the selected model immediately. const runtimeModel = normalizeOptionalString(entry.model) ?? ""; const runtimeProvider = normalizeOptionalString(entry.modelProvider) ?? ""; const runtimePresent = runtimeModel.length > 0 || runtimeProvider.length > 0; const runtimeAligned =
runtimeModel === selection.model &&
(runtimeProvider.length === 0 || runtimeProvider === selection.provider); if (runtimePresent && (selectionUpdated || !runtimeAligned)) { if (entry.model !== undefined) { delete entry.model;
updated = true;
} if (entry.modelProvider !== undefined) { delete entry.modelProvider;
updated = true;
}
}
// contextTokens are derived from the active session model. When the selected // model changes (or runtime model is already stale), the cached window can // pin the session to an older/smaller limit until another run refreshes it. if (
entry.contextTokens !== undefined &&
(selectionUpdated || (runtimePresent && !runtimeAligned))
) { delete entry.contextTokens;
updated = true;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.