File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 148
148
// @description :zu Yengeza izimpendulo ze-AI ku-Brave Search (inikwa amandla yi-GPT-4o!)
149
149
// @author KudoAI
150
150
// @namespace https://kudoai.com
151
- // @version 2025.1.13.4
151
+ // @version 2025.1.13.5
152
152
// @license MIT
153
153
// @icon https://assets.bravegpt.com/images/icons/bravegpt/icon48.png?v=df624b0
154
154
// @icon 64 https://assets.bravegpt.com/images/icons/bravegpt/icon64.png?v=df624b0
3266
3266
return msgChain . map ( msg => { // stripped chain
3267
3267
if ( msg . role == 'user' ) {
3268
3268
let content = msg . content
3269
- const augments = content . match ( / \s * \{ \{ [ ^ } ] * \} \} \s * / g)
3270
- if ( augments ) augments . forEach ( augment => content = content . replace ( augment , '' ) )
3269
+ content . match ( / \{ \{ [ ^ } ] + \} \} / g) ?. forEach ( augment => content = content . replace ( augment , '' ) )
3271
3270
return { ...msg , content : content . trim ( ) }
3272
3271
} else return msg // agent's unstripped
3273
3272
} )
You can’t perform that action at this time.
0 commit comments