angle brackets in prompts not shown in UI and break other prompts

XMLWordPrintable

    • Medium
    • Encode html entities in prompt messages.

      Problem

      When a prompt is using angle brackets, they are no longer shown in the UI after saving the prompt in the prompt management. And when such a prompt is used on a language resource with RAG, no custom prompt at all will be sent to LLM.

      Steps to reproduce

      Create a prompt in the prompt management:
      "Words like <this> should be kept in angle brackets."

      Go tot an LLM resource which already uses some custom prompts and add the new one to it. 

      Translate a sample text in the test window and look at the "Raw data".

      No custom prompt is used at all.

      Solution

        1. image-2026-02-17-16-00-57-574.png
          321 kB
          Sylvia Schumacher
        2. image-2026-02-18-14-26-48-405.png
          255 kB
          Sylvia Schumacher

            Assignee:
            Aleksandar Mitrev
            Reporter:
            Sylvia Schumacher
            Axel Becher
            Sylvia Schumacher
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: