mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Add huggingface inference as text completion source
This commit is contained in:
		@@ -29,6 +29,7 @@ export const SECRET_KEYS = {
 | 
			
		||||
    GROQ: 'api_key_groq',
 | 
			
		||||
    AZURE_TTS: 'api_key_azure_tts',
 | 
			
		||||
    ZEROONEAI: 'api_key_01ai',
 | 
			
		||||
    HUGGINGFACE: 'api_key_huggingface',
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
const INPUT_MAP = {
 | 
			
		||||
@@ -58,6 +59,7 @@ const INPUT_MAP = {
 | 
			
		||||
    [SECRET_KEYS.PERPLEXITY]: '#api_key_perplexity',
 | 
			
		||||
    [SECRET_KEYS.GROQ]: '#api_key_groq',
 | 
			
		||||
    [SECRET_KEYS.ZEROONEAI]: '#api_key_01ai',
 | 
			
		||||
    [SECRET_KEYS.HUGGINGFACE]: '#api_key_huggingface',
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
async function clearSecret() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user