Skip to content

Commit ab70692

Browse files
committed
Mermaid: stop double quoting
1 parent d48f594 commit ab70692

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/aifn/digrams/diagrams.data.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ function plantumlDiagramPrompt(diagramType: DiagramType): { sys: string, usr: st
5555

5656
function mermaidDiagramPrompt(diagramType: DiagramType): { sys: string, usr: string } {
5757
let promptDetails = diagramType === 'auto'
58-
? 'Generate a valid Mermaid diagram markdown (```mermaid\\n...```), ready for rendering. The code should have no external references and all names must be in double quotes and properly escaped. Select the most appropriate Mermaid diagram type: flowchart, sequence, class, state, erd, gantt, pie, or git.'
59-
: 'Generate a valid Mermaid mindmap markdown (```mermaid\\n...```), ready for rendering. The code should have no external references and all names must be in double quotes and properly escaped. ' + mermaidMindmapExample;
58+
? 'Generate a valid Mermaid diagram markdown (```mermaid\\n...```), ready for rendering. The code should have no external references and all names must be properly escaped. Select the most appropriate Mermaid diagram type: flowchart, sequence, class, state, erd, gantt, pie, or git.'
59+
: 'Generate a valid Mermaid mindmap markdown (```mermaid\\n...```), ready for rendering. The code should have no external references and all names must be properly escaped. ' + mermaidMindmapExample;
6060
return {
6161
sys: `Your task is to generate accurate and well-structured Mermaid code from the given text. ${promptDetails}`,
6262
usr: `Generate the Mermaid code for a ${diagramType === 'auto' ? 'suitable diagram' : 'mind map'} that ${diagramType === 'auto' ? 'best captures the essence' : 'effectively summarizes the key points'} of the preceding message.`,

0 commit comments

Comments
 (0)