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 149
149
// @description :zu Yengeza izimpendulo ze-AI ku-Google Search (inikwa amandla yi-Google Gemma + GPT-4o!)
150
150
// @author KudoAI
151
151
// @namespace https://kudoai.com
152
- // @version 2025.1.13.4
152
+ // @version 2025.1.13.5
153
153
// @license MIT
154
154
// @icon https://assets.googlegpt.io/images/icons/googlegpt/black/icon48.png?v=59409b2
155
155
// @icon 64 https://assets.googlegpt.io/images/icons/googlegpt/black/icon64.png?v=59409b2
3487
3487
return msgChain . map ( msg => { // stripped chain
3488
3488
if ( msg . role == 'user' ) {
3489
3489
let content = msg . content
3490
- const augments = content . match ( / \s * \{ \{ [ ^ } ] * \} \} \s * / g)
3491
- if ( augments ) augments . forEach ( augment => content = content . replace ( augment , '' ) )
3490
+ content . match ( / \{ \{ [ ^ } ] + \} \} / g) ?. forEach ( augment => content = content . replace ( augment , '' ) )
3492
3491
return { ...msg , content : content . trim ( ) }
3493
3492
} else return msg // agent's unstripped
3494
3493
} )
You can’t perform that action at this time.
0 commit comments