File tree 2 files changed +10
-5
lines changed
2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.1.0/ ) .
6
6
7
+ ## [ Unreleased]
8
+
9
+ ### Fixed
10
+ - Fix remote model template to allow for XML in messages ([ #3318 ] ( https://github.com/nomic-ai/gpt4all/pull/3318 ) )
11
+
7
12
## [ 3.5.3] - 2024-12-16
8
13
9
14
### Fixed
Original file line number Diff line number Diff line change @@ -62,15 +62,15 @@ static const QString RMODEL_CHAT_TEMPLATE = uR"(<chat>
62
62
{%- if loop.first %}
63
63
{{- '### Context:\n' }}
64
64
{%- endif %}
65
- {{- 'Collection: ' + source.collection + '\n' +
66
- 'Path: ' + source.path + '\n' +
67
- 'Excerpt: ' + source.text + '\n\n' }}
65
+ {{- ( 'Collection: ' + source.collection + '\n' +
66
+ 'Path: ' + source.path + '\n' +
67
+ 'Excerpt: ' + source.text + '\n\n') | escape }}
68
68
{%- endfor %}
69
69
{%- endif %}
70
70
{%- for attachment in message.prompt_attachments %}
71
- {{- attachment.processed_content + '\n\n' }}
71
+ {{- ( attachment.processed_content + '\n\n') | escape }}
72
72
{%- endfor %}
73
- {{- message.content }}
73
+ {{- message.content | escape }}
74
74
{{- '</' + message['role'] + '>' }}
75
75
{%- endfor %}
76
76
</chat>)" _s;
You can’t perform that action at this time.
0 commit comments