Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

427 B
Raw Blame
/** Untrusted text can't end a data block early (or open a new one) by containing the markers. */
export const inertMarkers = (text: string) => text.replaceAll("<<<", "‹‹‹").replaceAll(">>>", "›››");

/** Text the model must treat as data, between `<<<NAME_START>>>` and `<<<NAME_END>>>`. */
export const dataBlock = (name: string, text: string) =>
	`<<<${name}_START>>>\n${inertMarkers(text)}\n<<<${name}_END>>>`;