bra1nDump / show-me-chatgpt-plugin

Create and edit diagrams in ChatGPT
https://showme.redstarplugin.com
674 stars 71 forks source link

Line break causing error #31

Open RemyMachado opened 1 year ago

RemyMachado commented 1 year ago

I asked if I could have a second information on a new line inside a node, and it unfortunately created an erroneous graph.

Previous result:

https://showme.redstarplugin.com/d/SNgNCjUC image

The prompt which crashed:

Great, please show distances instead of edge numbers in the graph. We will be referring later to edges by specifying start and destination. Also, put a heading '#' before the indexes and show the resources with a heading '$' instead of writing resources, also can the resources be shown below (new line)?

The error:

error on line 1 at column 8318: Opening and ending tag mismatch: br line 1 and span

https://showme.redstarplugin.com/d/wHBQuLPK

Expected result (handmade):

image

bra1nDump commented 1 year ago

Thanks for reporting. Unfortunately rn when it inserts the br element it forgets to close the tag. We don't really have space in the manifest prompt (Max is 8000 characters). We can consolidate the prompt and add the instruction to close the
tag.