1. 16 Oct, 2023 1 commit
  2. 01 Sep, 2023 1 commit
    • Quinn Slack's avatar
      do not HTML-escape prompt · 62d29b21
      Quinn Slack authored
      The `html/template` package automatically HTML-escapes interpolated strings in templates. This behavior is undesirable because it causes prompts like `<h1>hello` to be escaped to `&lt;h1&gt;hello` before being passed to the LLM.
      
      The included test case passes, but before the code change, it failed:
      
      ```
      --- FAIL: TestModelPrompt
          images_test.go:21: got "a&lt;h1&gt;b", want "a<h1>b"
      ```
      62d29b21