| 2719 | environment.mesExamples = () => { | 2719 | environment.mesExamples = () => { |
| 2720 | const isInstruct = power_user.instruct.enabled && main_api !== 'openai'; | 2720 | const isInstruct = power_user.instruct.enabled && main_api !== 'openai'; |
| 2721 | const mesExamplesArray = parseMesExamples(fields.mesExamples, isInstruct); | 2721 | const mesExamplesArray = parseMesExamples(fields.mesExamples, isInstruct); |
| | 2722 | if (isInstruct) { |
| 2722 | const instructExamples = formatInstructModeExamples(mesExamplesArray, name1, name2); | 2723 | const instructExamples = formatInstructModeExamples(mesExamplesArray, name1, name2); |
| 2723 | return instructExamples.join(''); | 2724 | return instructExamples.join(''); |
| | 2725 | } |
| | 2726 | return mesExamplesArray.join(''); |
| 2724 | }; | 2727 | }; |
| 2725 | environment.mesExamplesRaw = fields.mesExamples || ''; | 2728 | environment.mesExamplesRaw = fields.mesExamples || ''; |
| 2726 | environment.charVersion = fields.version || ''; | 2729 | environment.charVersion = fields.version || ''; |