Ship Assistent 0.15.11: collaborative params, richer UI, and strict image critique.
Adds session_exact pinning, sampler/scheduler chips, expanded param tags with non-default highlighting, QLoRA HF presets, LoRA strength editing, SQLite bootstrap for training memory, last-job UI, and harsher critique_image QC so result review leads with defects instead of praise. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -193,6 +193,43 @@ describe('session.js', () => {
|
||||
assert.equal(forced.patch.cfg, 1);
|
||||
});
|
||||
|
||||
it('mergeExactParamsForGenerate preserves pinned session_exact sampler/scheduler when LLM omits them', () => {
|
||||
const exact = {
|
||||
generation: { profile: 'turbo', steps: 8, cfg: 1, sampler: 'euler', scheduler: 'normal' },
|
||||
profiles: { turbo: { steps: 8, cfg: 1, sigma_shift: 1.15 } },
|
||||
};
|
||||
const { patch, clearSessionKeys } = mergeExactParamsForGenerate(
|
||||
{ prompt: 'a fox', generate: true },
|
||||
{
|
||||
exact,
|
||||
profiles: exact.profiles,
|
||||
profileName: 'turbo',
|
||||
sessionExact: { sampler: 'heun', scheduler: 'simple', aspect: '16:9' },
|
||||
userParamIntent: false,
|
||||
},
|
||||
);
|
||||
assert.equal(patch.sampler, 'heun');
|
||||
assert.equal(patch.scheduler, 'simple');
|
||||
assert.equal(patch.aspect, '16:9');
|
||||
assert.equal(patch.steps, 8);
|
||||
assert.deepEqual(clearSessionKeys.sort(), []);
|
||||
});
|
||||
|
||||
it('mergeExactParamsForGenerate does not overwrite explicit LLM sampler/scheduler', () => {
|
||||
const { patch } = mergeExactParamsForGenerate(
|
||||
{ generate: true, sampler: 'dpmpp_2m', scheduler: 'karras' },
|
||||
{
|
||||
exact: { generation: { steps: 8, cfg: 1 } },
|
||||
profiles: { turbo: { steps: 8, cfg: 1 } },
|
||||
profileName: 'turbo',
|
||||
sessionExact: { sampler: 'heun', scheduler: 'simple' },
|
||||
userParamIntent: false,
|
||||
},
|
||||
);
|
||||
assert.equal(patch.sampler, 'dpmpp_2m');
|
||||
assert.equal(patch.scheduler, 'karras');
|
||||
});
|
||||
|
||||
it('resolveExactProfileDefaults picks raw over generation defaults', () => {
|
||||
const d = resolveExactProfileDefaults({
|
||||
exact: { generation: { steps: 8, cfg: 1, sigma_shift: 1.15 } },
|
||||
|
||||
Reference in New Issue
Block a user