mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Add ability to get model name with /model
This commit is contained in:
		@@ -470,7 +470,7 @@ async function waitForConnection() {
 | 
			
		||||
export async function initPresetManager() {
 | 
			
		||||
    eventSource.on(event_types.CHAT_CHANGED, autoSelectPreset);
 | 
			
		||||
    registerPresetManagers();
 | 
			
		||||
    registerSlashCommand('preset', presetCommandCallback, [], '<span class="monospace">(name)</span> – sets a preset by name for the current API', true, true);
 | 
			
		||||
    registerSlashCommand('preset', presetCommandCallback, [], '<span class="monospace">(name)</span> – sets a preset by name for the current API. Gets the current preset if no name is provided', true, true);
 | 
			
		||||
 | 
			
		||||
    $(document).on('click', '[data-preset-manager-update]', async function () {
 | 
			
		||||
        const apiId = $(this).data('preset-manager-update');
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user