| 1550 | const isInjectionPrompt = prompt.injection_position === INJECTION_POSITION.ABSOLUTE; | 1550 | const isInjectionPrompt = prompt.injection_position === INJECTION_POSITION.ABSOLUTE; |
| 1551 | const isOverriddenPrompt = Array.isArray(this.overriddenPrompts) && this.overriddenPrompts.includes(prompt.identifier); | 1551 | const isOverriddenPrompt = Array.isArray(this.overriddenPrompts) && this.overriddenPrompts.includes(prompt.identifier); |
| 1552 | const importantClass = isImportantPrompt ? `${prefix}prompt_manager_important` : ''; | 1552 | const importantClass = isImportantPrompt ? `${prefix}prompt_manager_important` : ''; |
| 1553 | const iconLookup = prompt.role === 'system' && (prompt.marker || prompt.system_prompt) ? '' : prompt.role; | 1553 | const iconLookup = (prompt.marker || prompt.system_prompt) ? '' : prompt.role; |
| 1554 | | 1554 | |
| 1555 | //add role icons to the right of prompt name | 1555 | //add role icons to the right of prompt name |
| 1556 | const promptRoles = { | 1556 | const promptRoles = { |
| 1557 | system: { roleIcon: 'fa-cog', roleTitle: 'Prompt will be sent as System' }, | | |
| 1558 | assistant: { roleIcon: 'fa-robot', roleTitle: 'Prompt will be sent as Assistant' }, | 1557 | assistant: { roleIcon: 'fa-robot', roleTitle: 'Prompt will be sent as Assistant' }, |
| 1559 | user: { roleIcon: 'fa-user', roleTitle: 'Prompt will be sent as User' }, | 1558 | user: { roleIcon: 'fa-user', roleTitle: 'Prompt will be sent as User' }, |
| 1560 | }; | 1559 | }; |