- add messages as alternative to prompt/response format
- remove deprecated context and template generate parameters from docs
- context and template are still supported for the time being and will continue to work as expected
- deprecate generation context, but continue to support it
- on first request generation context will still be returned
- if messages are specified context is not returned
- rebuild generation context from prompt/reply messages
- update generate docs with messages parameter
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 `<h1>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<h1>b", want "a<h1>b"
```