Show used preset in itemization dialog
| @@ -241,7 +241,7 @@ import { hideLoader, showLoader } from './scripts/loader.js'; | ||
| 241 | 241 | import { BulkEditOverlay, CharacterContextMenu } from './scripts/BulkEditOverlay.js'; |
| 242 | 242 | import { loadFeatherlessModels, loadMancerModels, loadOllamaModels, loadTogetherAIModels, loadInfermaticAIModels, loadOpenRouterModels, loadVllmModels, loadAphroditeModels, loadDreamGenModels, initTextGenModels, loadTabbyModels } from './scripts/textgen-models.js'; |
| 243 | 243 | import { appendFileContent, hasPendingFileAttachment, populateFileAttachment, decodeStyleTags, encodeStyleTags, isExternalMediaAllowed, getCurrentEntityId, preserveNeutralChat, restoreNeutralChat } from './scripts/chats.js'; |
| 244 | 244 | import { getPresetManager, initPresetManager } from './scripts/preset-manager.js'; |
| 245 | 245 | import { MacrosParser, evaluateMacros, getLastMessageId, initMacros } from './scripts/macros.js'; |
| 246 | 246 | import { currentUser, setUserControls } from './scripts/user.js'; |
| 247 | 247 | import { POPUP_RESULT, POPUP_TYPE, Popup, callGenericPopup, fixToastrForDialogs } from './scripts/popup.js'; |
| @@ -4494,6 +4494,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro | ||
| 4494 | 4494 | instruction: main_api !== 'openai' && power_user.sysprompt.enabled ? substituteParams(power_user.prefer_character_prompt && system ? system : power_user.sysprompt.content) : '', |
| 4495 | 4495 | userPersona: (power_user.persona_description_position == persona_description_positions.IN_PROMPT ? (persona || '') : ''), |
| 4496 | 4496 | tokenizer: getFriendlyTokenizerName(main_api).tokenizerName || '', |
| 4497 | + presetName: getPresetManager()?.getSelectedPresetName() || '', | |
| 4497 | 4498 | }; |
| 4498 | 4499 | |
| 4499 | 4500 | //console.log(additionalPromptStuff); |
| @@ -5160,6 +5161,7 @@ export async function itemizedParams(itemizedPrompts, thisPromptSet, incomingMes | ||
| 5160 | 5161 | dataBankVectorsStringTokens: await getTokenCountAsync(itemizedPrompts[thisPromptSet].dataBankVectorsString), |
| 5161 | 5162 | modelUsed: chat[incomingMesId]?.extra?.model, |
| 5162 | 5163 | apiUsed: chat[incomingMesId]?.extra?.api, |
| 5164 | + presetName: itemizedPrompts[thisPromptSet].presetName || t`(Unknown)`, | |
| 5163 | 5165 | }; |
| 5164 | 5166 | |
| 5165 | 5167 | const getFriendlyName = (value) => $(`#rm_api_block select option[value="${value}"]`).first().text() || value; |
| @@ -4,8 +4,17 @@ | ||
| 4 | 4 | <div id="copyPromptToClipboard" class="fa-solid fa-copy menu_button" title="Copy Prompt" data-i18n="[title]Copy Prompt"></div> |
| 5 | 5 | <div id="diffPrevPrompt" class="fa-solid fa-code-compare menu_button" title="Show Prompt Differences" data-i18n="[title]Show Prompt Differences"></div> |
| 6 | 6 | </h3> |
| 7 | -API/Model Used: {{mainApiFriendlyName}} {{#if apiUsed}}({{apiUsed}}){{/if}} {{#if modelUsed}}– {{modelUsed}}{{/if}}<br> | |
| 7 | +<div> | |
| 8 | -Tokenizer: {{selectedTokenizer}}<br> | |
| 8 | + <div> | |
| 9 | + API/Model: {{mainApiFriendlyName}} {{#if apiUsed}}({{apiUsed}}){{/if}} {{#if modelUsed}}– {{modelUsed}}{{/if}} | |
| 10 | + </div> | |
| 11 | + <div> | |
| 12 | + <small>Preset: {{presetName}}</small> | |
| 13 | + <span>|</span> | |
| 14 | + <small>Tokenizer: {{selectedTokenizer}}</small> | |
| 15 | + </div> | |
| 16 | +</div> | |
| 17 | + | |
| 9 | 18 | <span class="tokenItemizingSubclass"> |
| 10 | 19 | Only the white numbers really matter. All numbers are estimates. |
| 11 | 20 | Grey color items may not have been included in the context due to certain prompt format settings. |
| @@ -4,8 +4,17 @@ | ||
| 4 | 4 | <div id="copyPromptToClipboard" class="fa-solid fa-copy menu_button" title="Copy Prompt" data-i18n="[title]Copy Prompt"></div> |
| 5 | 5 | <div id="diffPrevPrompt" class="fa-solid fa-code-compare menu_button" title="Show Prompt Differences" data-i18n="[title]Show Prompt Differences"></div> |
| 6 | 6 | </h3> |
| 7 | -API/Model Used: {{mainApiFriendlyName}} {{#if apiUsed}}({{apiUsed}}){{/if}} {{#if modelUsed}}– {{modelUsed}}{{/if}}<br> | |
| 7 | +<div> | |
| 8 | -Tokenizer: {{selectedTokenizer}}<br> | |
| 8 | + <div> | |
| 9 | + API/Model: {{mainApiFriendlyName}} {{#if apiUsed}}({{apiUsed}}){{/if}} {{#if modelUsed}}– {{modelUsed}}{{/if}} | |
| 10 | + </div> | |
| 11 | + <div> | |
| 12 | + <small>Preset: {{presetName}}</small> | |
| 13 | + <span>|</span> | |
| 14 | + <small>Tokenizer: {{selectedTokenizer}}</small> | |
| 15 | + </div> | |
| 16 | +</div> | |
| 17 | + | |
| 9 | 18 | <span class="tokenItemizingSubclass"> |
| 10 | 19 | Only the white numbers really matter. All numbers are estimates. |
| 11 | 20 | Grey color items may not have been included in the context due to certain prompt format settings. |