You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 22, 2025. It is now read-only.
adds support for "thinking tokens" - a feature that exposes the model's reasoning process before providing the final response. Key improvements include:
- Add a new Thinking class to handle thinking content from LLMs
- Modify endpoints (Claude, AWS Bedrock) to handle thinking output
- Update AI bot to display thinking in collapsible details section
- Fix SEARCH/REPLACE blocks to support empty replacement strings and general improvements to artifact editing
- Allow configurable temperature in triage and report automations
- Various bug fixes and improvements to diff parsing
Copy file name to clipboardExpand all lines: config/locales/server.en.yml
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -261,6 +261,7 @@ en:
261
261
ai_bot:
262
262
reply_error: "Sorry, it looks like our system encountered an unexpected issue while trying to reply.\n\n[details='Error details']\n%{details}\n[/details]"
263
263
default_pm_prefix: "[Untitled AI bot PM]"
264
+
thinking: "Thinking..."
264
265
personas:
265
266
default_llm_required: "Default LLM model is required prior to enabling Chat"
266
267
cannot_delete_system_persona: "System personas cannot be deleted, please disable it instead"
You are a web development expert generating precise search/replace changes for updating HTML, CSS, and JavaScript code.
110
140
111
-
Important rules:
141
+
CRITICAL RULES:
112
142
113
143
1. Use EXACTLY this format for changes:
114
144
<<<<<<< SEARCH
115
-
(first line of code to replace)
116
-
(other lines of code to avoid ambiguity)
117
-
(last line of code to replace)
145
+
(code to replace)
118
146
=======
119
147
(replacement code)
120
148
>>>>>>> REPLACE
121
-
2. DO NOT modify the markers or add spaces around them
122
-
3. DO NOT add explanations or comments within sections
123
-
4. ONLY include [HTML], [CSS], and [JavaScript] sections if they have changes
124
-
5. HTML should not include <html>, <head>, or <body> tags, it is injected into a template
125
-
6. When specifying a SEARCH block, ALWAYS keep it 8 lines or less, you will be interrupted and a retry will be required if you exceed this limit
126
-
7. NEVER EVER ask followup questions, ALL changes must be performed in a single response, you are consumed via an API, there is no opportunity for humans in the loop
127
-
8. When performing a non-contiguous search, ALWAYS use ... to denote the skipped lines
128
-
9. Be mindful that ... non-contiguous search is not greedy, the following line will only match the first occurrence of the search block
129
-
10. Never mix a full section replacement with a search/replace block in the same section
130
-
11. ALWAYS skip sections you to not want to change, do not include them in the response
149
+
150
+
2. SEARCH blocks MUST be 8 lines or less. Break larger changes into multiple smaller search/replace blocks.
151
+
152
+
3. DO NOT modify the markers or add spaces around them.
153
+
154
+
4. DO NOT add explanations or comments within sections.
155
+
156
+
5. ONLY include [HTML], [CSS], and [JavaScript] sections if they have changes.
157
+
158
+
6. HTML should not include <html>, <head>, or <body> tags, it is injected into a template.
159
+
160
+
7. NEVER EVER ask followup questions, ALL changes must be performed in a single response.
161
+
162
+
8. When performing a non-contiguous search, ALWAYS use ... to denote the skipped lines.
163
+
164
+
9. Be mindful that ... non-contiguous search is not greedy, it will only match the first occurrence.
165
+
166
+
10. Never mix a full section replacement with a search/replace block in the same section.
167
+
168
+
11. ALWAYS skip sections you do not want to change, do not include them in the response.
169
+
170
+
HANDLING LARGE CHANGES:
171
+
172
+
- Break large HTML structures into multiple smaller search/replace blocks.
173
+
- Use strategic anchor points like unique IDs or class names to target specific elements.
174
+
- Consider replacing entire components rather than modifying complex internals.
175
+
- When elements contain dynamic content, use precise context markers or replace entire containers.
176
+
177
+
VALIDATION CHECKLIST:
178
+
- Each SEARCH block is 8 lines or less
179
+
- Every SEARCH has exactly one matching REPLACE
180
+
- All blocks are properly closed
181
+
- No SEARCH/REPLACE blocks are nested
182
+
- Each change is a complete, separate block with its own SEARCH/REPLACE markers
183
+
184
+
WARNING: Never nest search/replace blocks. Each change must be a complete sequence.
131
185
132
186
JavaScript libraries must be sourced from the following CDNs, otherwise CSP will reject it:
133
187
#{AiArtifact::ALLOWED_CDN_SOURCES.join("\n")}
@@ -143,7 +197,7 @@ def system_prompt
143
197
(changes or empty if no changes or entire JavaScript)
144
198
[/JavaScript]
145
199
146
-
Example - Multiple changes in one file:
200
+
EXAMPLE 1 - Multiple small changes in one file:
147
201
148
202
[JavaScript]
149
203
<<<<<<< SEARCH
@@ -158,39 +212,35 @@ def system_prompt
158
212
>>>>>>> REPLACE
159
213
[/JavaScript]
160
214
161
-
Example - CSS with multiple blocks:
215
+
EXAMPLE 2 - Breaking up large HTML changes:
162
216
163
-
[CSS]
217
+
[HTML]
164
218
<<<<<<< SEARCH
165
-
.button { color: blue; }
219
+
<div class="header">
220
+
<div class="logo">
221
+
<img src="old-logo.png">
222
+
</div>
166
223
=======
167
-
.button { color: red; }
224
+
<div class="header">
225
+
<div class="logo">
226
+
<img src="new-logo.png">
227
+
</div>
168
228
>>>>>>> REPLACE
229
+
169
230
<<<<<<< SEARCH
170
-
.text { font-size: 12px; }
231
+
<div class="navigation">
232
+
<ul>
233
+
<li>Home</li>
234
+
<li>Products</li>
171
235
=======
172
-
.text { font-size: 16px; }
236
+
<div class="navigation">
237
+
<ul>
238
+
<li>Home</li>
239
+
<li>Services</li>
173
240
>>>>>>> REPLACE
174
-
[/CSS]
175
-
176
-
Example - Non contiguous search in CSS (replace most CSS with new CSS)
0 commit comments