mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-24 07:58:00 +01:00
Farewell system icon
This commit is contained in:
parent
e9c9dda3fb
commit
7c879a3abc
@ -1550,11 +1550,10 @@ class PromptManager {
|
|||||||
const isInjectionPrompt = prompt.injection_position === INJECTION_POSITION.ABSOLUTE;
|
const isInjectionPrompt = prompt.injection_position === INJECTION_POSITION.ABSOLUTE;
|
||||||
const isOverriddenPrompt = Array.isArray(this.overriddenPrompts) && this.overriddenPrompts.includes(prompt.identifier);
|
const isOverriddenPrompt = Array.isArray(this.overriddenPrompts) && this.overriddenPrompts.includes(prompt.identifier);
|
||||||
const importantClass = isImportantPrompt ? `${prefix}prompt_manager_important` : '';
|
const importantClass = isImportantPrompt ? `${prefix}prompt_manager_important` : '';
|
||||||
const iconLookup = prompt.role === 'system' && (prompt.marker || prompt.system_prompt) ? '' : prompt.role;
|
const iconLookup = (prompt.marker || prompt.system_prompt) ? '' : prompt.role;
|
||||||
|
|
||||||
//add role icons to the right of prompt name
|
//add role icons to the right of prompt name
|
||||||
const promptRoles = {
|
const promptRoles = {
|
||||||
system: { roleIcon: 'fa-cog', roleTitle: 'Prompt will be sent as System' },
|
|
||||||
assistant: { roleIcon: 'fa-robot', roleTitle: 'Prompt will be sent as Assistant' },
|
assistant: { roleIcon: 'fa-robot', roleTitle: 'Prompt will be sent as Assistant' },
|
||||||
user: { roleIcon: 'fa-user', roleTitle: 'Prompt will be sent as User' },
|
user: { roleIcon: 'fa-user', roleTitle: 'Prompt will be sent as User' },
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user