Update the model filter for FAL.AI and update the list of providers for OpenRouter
| @@ -23,61 +23,67 @@ export let openRouterModels = []; | |||
| 23 | * @type {string[]} | 23 | * @type {string[]} |
| 24 | */ | 24 | */ |
| 25 | const OPENROUTER_PROVIDERS = [ | 25 | const OPENROUTER_PROVIDERS = [ |
| 26 | 'OpenAI', | 26 | |
| 27 | 'Anthropic', | 27 | "OpenAI", |
| 28 | 'Google', | 28 | "Anthropic", |
| 29 | 'Google AI Studio', | 29 | "Google", |
| 30 | 'Amazon Bedrock', | 30 | "Google AI Studio", |
| 31 | 'Groq', | 31 | "Amazon Bedrock", |
| 32 | 'SambaNova', | 32 | "Groq", |
| 33 | 'Cohere', | 33 | "SambaNova", |
| 34 | 'Mistral', | 34 | "Cohere", |
| 35 | 'Together', | 35 | "Mistral", |
| 36 | 'Together 2', | 36 | "Together", |
| 37 | 'Fireworks', | 37 | "Together 2", |
| 38 | 'DeepInfra', | 38 | "Fireworks", |
| 39 | 'Lepton', | 39 | "DeepInfra", |
| 40 | 'Novita', | 40 | "Lepton", |
| 41 | 'Avian', | 41 | "Novita", |
| 42 | 'Lambda', | 42 | "Avian", |
| 43 | 'Azure', | 43 | "Lambda", |
| 44 | 'Modal', | 44 | "Azure", |
| 45 | 'AnyScale', | 45 | "Modal", |
| 46 | 'Replicate', | 46 | "AnyScale", |
| 47 | 'Perplexity', | 47 | "Replicate", |
| 48 | 'Recursal', | 48 | "Perplexity", |
| 49 | 'OctoAI', | 49 | "Recursal", |
| 50 | 'DeepSeek', | 50 | "OctoAI", |
| 51 | 'Infermatic', | 51 | "DeepSeek", |
| 52 | 'AI21', | 52 | "Infermatic", |
| 53 | 'Featherless', | 53 | "AI21", |
| 54 | 'Inflection', | 54 | "Featherless", |
| 55 | 'xAI', | 55 | "Inflection", |
| 56 | 'Cloudflare', | 56 | "xAI", |
| 57 | 'SF Compute', | 57 | "Cloudflare", |
| 58 | 'Minimax', | 58 | "SF Compute", |
| 59 | 'Nineteen', | 59 | "Minimax", |
| 60 | 'Liquid', | 60 | "Nineteen", |
| 61 | 'InferenceNet', | 61 | "Liquid", |
| 62 | 'Friendli', | 62 | "Stealth", |
| 63 | 'AionLabs', | 63 | "NCompass", |
| 64 | 'Alibaba', | 64 | "InferenceNet", |
| 65 | 'Nebius', | 65 | "Friendli", |
| 66 | 'Chutes', | 66 | "AionLabs", |
| 67 | 'Kluster', | 67 | "Alibaba", |
| 68 | 'Crusoe', | 68 | "Nebius", |
| 69 | 'Targon', | 69 | "Chutes", |
| 70 | 'Ubicloud', | 70 | "Kluster", |
| 71 | 'Parasail', | 71 | "Crusoe", |
| 72 | '01.AI', | 72 | "Targon", |
| 73 | 'HuggingFace', | 73 | "Ubicloud", |
| 74 | 'Mancer', | 74 | "Parasail", |
| 75 | 'Mancer 2', | 75 | "Phala", |
| 76 | 'Hyperbolic', | 76 | "Cent-ML", |
| 77 | 'Hyperbolic 2', | 77 | "Venice", |
| 78 | 'Lynn 2', | 78 | "01.AI", |
| 79 | 'Lynn', | 79 | "HuggingFace", |
| 80 | 'Reflection', | 80 | "Mancer", |
| 81 | "Mancer 2", | ||
| 82 | "Hyperbolic", | ||
| 83 | "Hyperbolic 2", | ||
| 84 | "Lynn 2", | ||
| 85 | "Lynn", | ||
| 86 | "Reflection" | ||
| 81 | ]; | 87 | ]; |
| 82 | 88 | ||
| 83 | export async function loadOllamaModels(data) { | 89 | export async function loadOllamaModels(data) { |
| @@ -1166,7 +1166,8 @@ falai.post('/models', async (_request, response) => { | |||
| 1166 | const models = data | 1166 | const models = data |
| 1167 | .filter(x => !x.title.toLowerCase().includes('inpainting') && | 1167 | .filter(x => !x.title.toLowerCase().includes('inpainting') && |
| 1168 | !x.title.toLowerCase().includes('control') && | 1168 | !x.title.toLowerCase().includes('control') && |
| 1169 | !x.title.toLowerCase().includes('upscale')) | 1169 | !x.title.toLowerCase().includes('upscale') && |
| 1170 | !x.title.toLowerCase().includes('lora')) | ||
| 1170 | .sort((a, b) => a.title.localeCompare(b.title)) | 1171 | .sort((a, b) => a.title.localeCompare(b.title)) |
| 1171 | .map(x => ({ value: x.modelUrl.split('fal-ai/')[1], text: x.title })); | 1172 | .map(x => ({ value: x.modelUrl.split('fal-ai/')[1], text: x.title })); |
| 1172 | return response.send(models); | 1173 | return response.send(models); |