mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Gemma 3 (#3686)
* Gemma 3 * Adjust safetySettings * Disable sysprompt * Add isGemma check to tool processing logic * Disable a google search tool for gemma
This commit is contained in:
		@@ -4341,10 +4341,12 @@ async function onModelChange() {
 | 
			
		||||
            $('#openai_max_context').attr('max', max_32k);
 | 
			
		||||
        } else if (value.includes('gemini-1.0-ultra') || value === 'gemini-ultra') {
 | 
			
		||||
            $('#openai_max_context').attr('max', max_32k);
 | 
			
		||||
        } else if (value.includes('gemma-3')) {
 | 
			
		||||
            $('#openai_max_context').attr('max', max_128k);
 | 
			
		||||
        } else {
 | 
			
		||||
            $('#openai_max_context').attr('max', max_4k);
 | 
			
		||||
        }
 | 
			
		||||
        let makersuite_max_temp = (value.includes('vision') || value.includes('ultra')) ? 1.0 : 2.0;
 | 
			
		||||
        let makersuite_max_temp = (value.includes('vision') || value.includes('ultra') || value.includes('gemma')) ? 1.0 : 2.0;
 | 
			
		||||
        oai_settings.temp_openai = Math.min(makersuite_max_temp, oai_settings.temp_openai);
 | 
			
		||||
        $('#temp_openai').attr('max', makersuite_max_temp).val(oai_settings.temp_openai).trigger('input');
 | 
			
		||||
        oai_settings.openai_max_context = Math.min(Number($('#openai_max_context').attr('max')), oai_settings.openai_max_context);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user