mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Dynamically hide incompatible chat completion elements depending on selected API
This commit is contained in:
		| @@ -1532,6 +1532,11 @@ function toggleChatCompletionForms() { | ||||
|     } else { | ||||
|         $('#model_openai_select').trigger('change'); | ||||
|     } | ||||
|  | ||||
|     $('[data-source]').each(function () { | ||||
|         const validSources = $(this).data('source').split(','); | ||||
|         $(this).toggle(validSources.includes(oai_settings.chat_completion_source)); | ||||
|     }); | ||||
| } | ||||
|  | ||||
| $(document).ready(function () { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user