mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Update the model filter for FAL.AI and update the list of providers for OpenRouter
This commit is contained in:
@@ -23,61 +23,67 @@ export let openRouterModels = [];
|
|||||||
* @type {string[]}
|
* @type {string[]}
|
||||||
*/
|
*/
|
||||||
const OPENROUTER_PROVIDERS = [
|
const OPENROUTER_PROVIDERS = [
|
||||||
'OpenAI',
|
|
||||||
'Anthropic',
|
"OpenAI",
|
||||||
'Google',
|
"Anthropic",
|
||||||
'Google AI Studio',
|
"Google",
|
||||||
'Amazon Bedrock',
|
"Google AI Studio",
|
||||||
'Groq',
|
"Amazon Bedrock",
|
||||||
'SambaNova',
|
"Groq",
|
||||||
'Cohere',
|
"SambaNova",
|
||||||
'Mistral',
|
"Cohere",
|
||||||
'Together',
|
"Mistral",
|
||||||
'Together 2',
|
"Together",
|
||||||
'Fireworks',
|
"Together 2",
|
||||||
'DeepInfra',
|
"Fireworks",
|
||||||
'Lepton',
|
"DeepInfra",
|
||||||
'Novita',
|
"Lepton",
|
||||||
'Avian',
|
"Novita",
|
||||||
'Lambda',
|
"Avian",
|
||||||
'Azure',
|
"Lambda",
|
||||||
'Modal',
|
"Azure",
|
||||||
'AnyScale',
|
"Modal",
|
||||||
'Replicate',
|
"AnyScale",
|
||||||
'Perplexity',
|
"Replicate",
|
||||||
'Recursal',
|
"Perplexity",
|
||||||
'OctoAI',
|
"Recursal",
|
||||||
'DeepSeek',
|
"OctoAI",
|
||||||
'Infermatic',
|
"DeepSeek",
|
||||||
'AI21',
|
"Infermatic",
|
||||||
'Featherless',
|
"AI21",
|
||||||
'Inflection',
|
"Featherless",
|
||||||
'xAI',
|
"Inflection",
|
||||||
'Cloudflare',
|
"xAI",
|
||||||
'SF Compute',
|
"Cloudflare",
|
||||||
'Minimax',
|
"SF Compute",
|
||||||
'Nineteen',
|
"Minimax",
|
||||||
'Liquid',
|
"Nineteen",
|
||||||
'InferenceNet',
|
"Liquid",
|
||||||
'Friendli',
|
"Stealth",
|
||||||
'AionLabs',
|
"NCompass",
|
||||||
'Alibaba',
|
"InferenceNet",
|
||||||
'Nebius',
|
"Friendli",
|
||||||
'Chutes',
|
"AionLabs",
|
||||||
'Kluster',
|
"Alibaba",
|
||||||
'Crusoe',
|
"Nebius",
|
||||||
'Targon',
|
"Chutes",
|
||||||
'Ubicloud',
|
"Kluster",
|
||||||
'Parasail',
|
"Crusoe",
|
||||||
'01.AI',
|
"Targon",
|
||||||
'HuggingFace',
|
"Ubicloud",
|
||||||
'Mancer',
|
"Parasail",
|
||||||
'Mancer 2',
|
"Phala",
|
||||||
'Hyperbolic',
|
"Cent-ML",
|
||||||
'Hyperbolic 2',
|
"Venice",
|
||||||
'Lynn 2',
|
"01.AI",
|
||||||
'Lynn',
|
"HuggingFace",
|
||||||
'Reflection',
|
"Mancer",
|
||||||
|
"Mancer 2",
|
||||||
|
"Hyperbolic",
|
||||||
|
"Hyperbolic 2",
|
||||||
|
"Lynn 2",
|
||||||
|
"Lynn",
|
||||||
|
"Reflection"
|
||||||
];
|
];
|
||||||
|
|
||||||
export async function loadOllamaModels(data) {
|
export async function loadOllamaModels(data) {
|
||||||
|
@@ -1166,7 +1166,8 @@ falai.post('/models', async (_request, response) => {
|
|||||||
const models = data
|
const models = data
|
||||||
.filter(x => !x.title.toLowerCase().includes('inpainting') &&
|
.filter(x => !x.title.toLowerCase().includes('inpainting') &&
|
||||||
!x.title.toLowerCase().includes('control') &&
|
!x.title.toLowerCase().includes('control') &&
|
||||||
!x.title.toLowerCase().includes('upscale'))
|
!x.title.toLowerCase().includes('upscale') &&
|
||||||
|
!x.title.toLowerCase().includes('lora'))
|
||||||
.sort((a, b) => a.title.localeCompare(b.title))
|
.sort((a, b) => a.title.localeCompare(b.title))
|
||||||
.map(x => ({ value: x.modelUrl.split('fal-ai/')[1], text: x.title }));
|
.map(x => ({ value: x.modelUrl.split('fal-ai/')[1], text: x.title }));
|
||||||
return response.send(models);
|
return response.send(models);
|
||||||
|
Reference in New Issue
Block a user