mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Expressions: Let the user know if classification failed
Send a message if the classifer fails and fallback to the default expression. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
		@@ -1055,7 +1055,8 @@ async function getExpressionLabel(text) {
 | 
			
		||||
                }
 | 
			
		||||
        }
 | 
			
		||||
    } catch (error) {
 | 
			
		||||
        console.log(error);
 | 
			
		||||
        toastr.info("Could not classify expression. Check the console or your backend for more information.")
 | 
			
		||||
        console.error(error);
 | 
			
		||||
        return getFallbackExpression();
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user