Repository navigation
2.4.1 A smaller, faster Prompt Builder page
The Prompt Builder page is a quarter of its size, opens sooner and no longer needs 'unsafe-eval'.
Upgrading from 2.4.0
Step 1 is for every site with the Prompt Builder; step 2 is optional.
- Update the checkout to 2.4.1, then
mdb builders-importand reload the Prompt Builder report. - Optional: remove
'unsafe-eval'fromscript-srcof the SAS Job Execution content security policy, unless another page served by SAS Job Execution on your site needs it (Setup Additional UIs).
Changed
- The page is gzipped. The build stores the script and the stylesheet gzipped and base64-encoded, and a small loader unpacks them in the browser; the file shrinks from 1.24 MB to 0.35 MB. SAS Job Execution serves it uncompressed, so every load transfers that much less, and the build fails if a Go template action (
{{) is left in the page. - No
'unsafe-eval'. The loader runs the script as an inline script instead of throughnew Function;'unsafe-inline'is enough. - The first view asks for what it needs at once. The projects, the LLMs with their options, the provider keys and the decision models load side by side instead of one after another, and the current user alongside them.
- DOMPurify 3.4.17 (from 3.4.16), for three advisories of modes the page does not use.