Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 636 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 636 Bytes

librechat-mermaid-plugin

Provide the required service and plugin to create mermaid images within Librechat

Build

docker build -t mermaid-api . or docker compose build

Run

docker compose up -d

Testing

PNG Test

curl -X POST -H "Content-Type: application/json" -d '{
  "code": "graph LR\n  A-->B;\n  B-->C;"
}' http://localhost:3000/png -o output.png

SVG Test

curl -X POST -H "Content-Type: application/json" -d '{
  "code": "graph LR\n  A-->B;\n  B-->C;"
}' http://localhost:3000/svg -o output.svg

Wellknown Test

curl http://localhost:3333/.well-known/ai-plugin.json