Lattice Grid Buy a licence

designer ยท console.warn

designer.assist: the model's reply was not a...

Printed by designer, prefixed [lattice], since 1.89.0.

Warnings reference › designer:assist:reply

Identifier
designer:assist:reply
Raised by
designer
Since
1.89.0

What happened

propose() could not read a proposal out of what ask() resolved to: it was not a JSON object with a panels array, nor an object whose structured, spec or text carried one, so nothing was shown and the result's spec is null.

The fix

Have the model return { panels: [...] }, or wrap that JSON in { structured }, { spec } or { text }.

The smallest fix

const { ok, spec, warnings } = await designer.assist.propose(prompt);

Reference

Covered in full at the API reference.