This pull request enhances the functionality of the project by enabling the use of all languages supported by Kroki. While I observed that certain languages outperform others, I have instructed the model to prioritize the use of the mermaid language.
I have refactored the codebase to facilitate the addition of language-related functions for the newly supported languages in Kroki. Functions like diagram formatting, obtaining the editor link, and validating syntax.
In my opinion, most of the times, the diagrams look great even without prompt engineering them for each language.
Examples
Show me how a food critic can interact with a restaurant using plantuml
Illustrate a sequence diagram of an HTTP request and response involving a user, browser, and a server. Use plantuml.
Draw me a family tree of 3 generations, one child at the bottom and many grandparents at the top. Use the most popular names in the world, use graphviz.
Make a linked list of prime numbers from 5 to 29 with blockdiag and make each node a different color like a rainbow
Draw ascii art of three persons with names above their heads using svgbob
Create a database diagram of social media like twitter with 4 tables using dbml
Related to #3
Description
This pull request enhances the functionality of the project by enabling the use of all languages supported by Kroki. While I observed that certain languages outperform others, I have instructed the model to prioritize the use of the mermaid language.
I have refactored the codebase to facilitate the addition of language-related functions for the newly supported languages in Kroki. Functions like diagram formatting, obtaining the editor link, and validating syntax.
In my opinion, most of the times, the diagrams look great even without prompt engineering them for each language.
Examples
Show me how a food critic can interact with a restaurant using plantuml
Illustrate a sequence diagram of an HTTP request and response involving a user, browser, and a server. Use plantuml.
Draw me a family tree of 3 generations, one child at the bottom and many grandparents at the top. Use the most popular names in the world, use graphviz.
Make a linked list of prime numbers from 5 to 29 with blockdiag and make each node a different color like a rainbow
Draw ascii art of three persons with names above their heads using svgbob
Create a database diagram of social media like twitter with 4 tables using dbml