diff --git a/packages/core/src/promptdom.ts b/packages/core/src/promptdom.ts index 856c0a5ea..c54053bf3 100644 --- a/packages/core/src/promptdom.ts +++ b/packages/core/src/promptdom.ts @@ -330,7 +330,6 @@ async function renderDefDataNode(n: PromptDefDataNode): Promise { const { name, headers, priority, ephemeral, query } = n let data = n.resolved let format = n.format - const cacheControl = n.cacheControl ?? (ephemeral ? "ephemeral" : undefined) if ( !format && Array.isArray(data) && @@ -356,11 +355,10 @@ async function renderDefDataNode(n: PromptDefDataNode): Promise { } const value = lang - ? `${name}: -\`\`\`${lang} + ? `<${name} format="${lang}"> ${trimNewlines(text)} -\`\`\` -` +<${name}> +F` : `${name}: ${trimNewlines(text)} `