Revert "feat: remove svg plugin"

This reverts commit df150a0a75.
This commit is contained in:
Gigi
2025-04-04 17:03:54 +01:00
parent 0a43d9e01e
commit c1397706f4

33
plugins/svg.yaml Normal file
View File

@@ -0,0 +1,33 @@
name: svg
description: Generate SVG files based on user descriptions
model: llama2 # Optional, falls back to OLLAMA_MODEL from .env
type: and # and, or
run: matching # always, matching
output_extension: .svg
prompt: |
You are an SVG generation specialist. Your job is to create SVG files based on user descriptions.
User request:
{transcript}
Please generate a valid SVG file that matches the user's description. The SVG should:
1. Be well-formed and valid XML
2. Include proper SVG namespace and viewBox
3. Be optimized for web use
4. Use appropriate SVG elements and attributes
5. Include comments explaining the structure
Rules:
- Output only the SVG code, no markdown or additional text
- Use proper XML formatting
- Include viewBox attribute
- Use semantic element names
- Add comments for complex sections
- Optimize for performance
- The output will be saved as an SVG file, so ensure it's complete and valid
Format the output as:
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
<!-- SVG content here -->
</svg>