The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
feat(providers): MiniMax as a provider preset (PR #203)
purple6880725a63bd
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.jsonindex 9948fd3e..8acc58a1 100644--- a/src-tauri/tauri.conf.json+++ b/src-tauri/tauri.conf.json@@ -25,7 +25,7 @@}],"security": {- "csp": "default-src 'self' http://ipc.localhost; connect-src 'self' blob: http://ipc.localhost http://tauri.localhost http://localhost:* http://127.0.0.1:* https://lu-labs.ai https://lrrhheztdytyfpizvuup.supabase.co https://civitai.com https://*.civitai.com https://huggingface.co https://*.huggingface.co https://ollama.com https://openrouter.ai https://api.openai.com https://api.groq.com https://api.together.xyz https://api.deepseek.com https://api.mistral.ai https://api.anthropic.com ws://localhost:* ws://127.0.0.1:*; img-src 'self' data: blob: http://localhost:* http://127.0.0.1:* https://lrrhheztdytyfpizvuup.supabase.co https://*.civitai.com https://*.githubusercontent.com; media-src 'self' blob: http://localhost:* http://127.0.0.1:* https://lrrhheztdytyfpizvuup.supabase.co https://lu-labs.ai; font-src 'self' data:; style-src 'self' 'unsafe-inline'; script-src 'self' 'wasm-unsafe-eval'; frame-src 'self' http://127.0.0.1:*"+ "csp": "default-src 'self' http://ipc.localhost; connect-src 'self' blob: http://ipc.localhost http://tauri.localhost http://localhost:* http://127.0.0.1:* https://lu-labs.ai https://lrrhheztdytyfpizvuup.supabase.co https://civitai.com https://*.civitai.com https://huggingface.co https://*.huggingface.co https://ollama.com https://openrouter.ai https://api.openai.com https://api.groq.com https://api.together.xyz https://api.deepseek.com https://api.mistral.ai https://api.minimax.io https://api.anthropic.com ws://localhost:* ws://127.0.0.1:*; img-src 'self' data: blob: http://localhost:* http://127.0.0.1:* https://lrrhheztdytyfpizvuup.supabase.co https://*.civitai.com https://*.githubusercontent.com; media-src 'self' blob: http://localhost:* http://127.0.0.1:* https://lrrhheztdytyfpizvuup.supabase.co https://lu-labs.ai; font-src 'self' data:; style-src 'self' 'unsafe-inline'; script-src 'self' 'wasm-unsafe-eval'; frame-src 'self' http://127.0.0.1:*"}},"plugins": {diff --git a/src-tauri/tauri.ios.conf.json b/src-tauri/tauri.ios.conf.jsonindex 346ab1ea..c7479c75 100644--- a/src-tauri/tauri.ios.conf.json+++ b/src-tauri/tauri.ios.conf.json@@ -16,7 +16,7 @@}],"security": {- "csp": "default-src 'self' ipc: http://ipc.localhost; connect-src 'self' blob: ipc: http://ipc.localhost http://tauri.localhost http://localhost:* http://127.0.0.1:* https://lu-labs.ai https://lrrhheztdytyfpizvuup.supabase.co https://civitai.com https://*.civitai.com https://huggingface.co https://*.huggingface.co https://ollama.com https://openrouter.ai https://api.openai.com https://api.groq.com https://api.together.xyz https://api.deepseek.com https://api.mistral.ai https://api.anthropic.com ws://localhost:* ws://127.0.0.1:*; img-src 'self' data: blob: http://localhost:* http://127.0.0.1:* https://lrrhheztdytyfpizvuup.supabase.co https://*.civitai.com https://*.githubusercontent.com; media-src 'self' blob: http://localhost:* http://127.0.0.1:* https://lrrhheztdytyfpizvuup.supabase.co https://lu-labs.ai; font-src 'self' data:; style-src 'self' 'unsafe-inline'; script-src 'self' 'wasm-unsafe-eval'; frame-src 'self' http://127.0.0.1:*"+ "csp": "default-src 'self' ipc: http://ipc.localhost; connect-src 'self' blob: ipc: http://ipc.localhost http://tauri.localhost http://localhost:* http://127.0.0.1:* https://lu-labs.ai https://lrrhheztdytyfpizvuup.supabase.co https://civitai.com https://*.civitai.com https://huggingface.co https://*.huggingface.co https://ollama.com https://openrouter.ai https://api.openai.com https://api.groq.com https://api.together.xyz https://api.deepseek.com https://api.mistral.ai https://api.minimax.io https://api.anthropic.com ws://localhost:* ws://127.0.0.1:*; img-src 'self' data: blob: http://localhost:* http://127.0.0.1:* https://lrrhheztdytyfpizvuup.supabase.co https://*.civitai.com https://*.githubusercontent.com; media-src 'self' blob: http://localhost:* http://127.0.0.1:* https://lrrhheztdytyfpizvuup.supabase.co https://lu-labs.ai; font-src 'self' data:; style-src 'self' 'unsafe-inline'; script-src 'self' 'wasm-unsafe-eval'; frame-src 'self' http://127.0.0.1:*"}},"bundle": {diff --git a/src/api/__tests__/csp-cloud-hosts.test.ts b/src/api/__tests__/csp-cloud-hosts.test.tsindex 09108036..193e72bd 100644--- a/src/api/__tests__/csp-cloud-hosts.test.ts+++ b/src/api/__tests__/csp-cloud-hosts.test.ts@@ -29,6 +29,7 @@ describe('CSP connect-src cloud provider hosts (GH #71)', () => {'https://api.together.xyz','https://api.deepseek.com','https://api.mistral.ai',+ 'https://api.minimax.io','https://api.anthropic.com',])('connect-src whitelists %s', (host) => {expect(connectSrc).toContain(host)diff --git a/src/api/__tests__/provider-types.test.ts b/src/api/__tests__/provider-types.test.tsindex 0a7cb4f1..d290499e 100644--- a/src/api/__tests__/provider-types.test.ts+++ b/src/api/__tests__/provider-types.test.ts@@ -34,7 +34,7 @@ describe('PROVIDER_PRESETS', () => {})it('has all major cloud providers', () => {- const cloudNames = ['OpenRouter', 'Groq', 'Together', 'DeepSeek', 'Mistral', 'OpenAI', 'Anthropic']+ const cloudNames = ['OpenRouter', 'Groq', 'Together', 'DeepSeek', 'Mistral', 'MiniMax', 'OpenAI', 'Anthropic']for (const name of cloudNames) {const preset = PROVIDER_PRESETS.find(p => p.name === name)expect(preset, `Missing cloud preset: ${name}`).toBeDefined()@@ -43,6 +43,16 @@ describe('PROVIDER_PRESETS', () => {}})+ it('uses the MiniMax OpenAI-compatible endpoint', () => {+ const minimax = PROVIDER_PRESETS.find(p => p.id === 'minimax')+ expect(minimax).toMatchObject({+ name: 'MiniMax',+ providerId: 'openai',+ baseUrl: 'https://api.minimax.io/v1',+ isLocal: false,+ })+ })+it('local presets have no API key placeholder', () => {const locals = PROVIDER_PRESETS.filter(p => p.isLocal)for (const p of locals) {diff --git a/src/api/backend.ts b/src/api/backend.tsindex 98af7ffb..7bc20bd1 100644--- a/src/api/backend.ts+++ b/src/api/backend.ts@@ -1253,6 +1253,7 @@ const CSP_DIRECT_HOSTS = new Set(['api.together.xyz','api.deepseek.com','api.mistral.ai',+ 'api.minimax.io','api.anthropic.com','ollama.com','huggingface.co',diff --git a/src/api/providers/types.ts b/src/api/providers/types.tsindex c7e674d7..2afab9dc 100644--- a/src/api/providers/types.ts+++ b/src/api/providers/types.ts@@ -125,6 +125,7 @@ export const PROVIDER_PRESETS: ProviderPreset[] = [{ id: 'together', name: 'Together', providerId: 'openai', baseUrl: 'https://api.together.xyz/v1', isLocal: false, placeholder: 'tok_...' },{ id: 'deepseek', name: 'DeepSeek', providerId: 'openai', baseUrl: 'https://api.deepseek.com/v1', isLocal: false, placeholder: 'sk-...' },{ id: 'mistral', name: 'Mistral', providerId: 'openai', baseUrl: 'https://api.mistral.ai/v1', isLocal: false, placeholder: 'sk-...' },+ { id: 'minimax', name: 'MiniMax', providerId: 'openai', baseUrl: 'https://api.minimax.io/v1', isLocal: false, placeholder: 'API key' },{ id: 'openai', name: 'OpenAI', providerId: 'openai', baseUrl: 'https://api.openai.com/v1', isLocal: false, placeholder: 'sk-...' },{ id: 'custom-openai', name: 'Custom (OpenAI-compat)', providerId: 'openai', baseUrl: '', isLocal: false },diff --git a/src/mobile/screens/settings/__tests__/providers.test.ts b/src/mobile/screens/settings/__tests__/providers.test.tsindex 81da986e..010a4d70 100644--- a/src/mobile/screens/settings/__tests__/providers.test.ts+++ b/src/mobile/screens/settings/__tests__/providers.test.ts@@ -4,7 +4,7 @@ import { cleanBaseUrl, findOwnProvider, looksLikeKey, ownProviders, testFailuredescribe('ownProviders', () => {it('lists the hosted providers of the design, then Anthropic and the custom endpoint', () => {- expect(ownProviders('Custom endpoint').map((p) => p.id)).toEqual(['openrouter', 'groq', 'together', 'deepseek', 'mistral', 'openai', 'anthropic', 'custom'])+ expect(ownProviders('Custom endpoint').map((p) => p.id)).toEqual(['openrouter', 'groq', 'together', 'deepseek', 'mistral', 'minimax', 'openai', 'anthropic', 'custom'])})it('takes names and addresses from the presets of the logic layer', () => {diff --git a/src/mobile/screens/settings/parts/providers.ts b/src/mobile/screens/settings/parts/providers.tsindex 88f6697a..6537939c 100644--- a/src/mobile/screens/settings/parts/providers.ts+++ b/src/mobile/screens/settings/parts/providers.ts@@ -5,7 +5,7 @@import { compatProviderId } from '../../../../api/providers/compat-id'import { PROVIDER_PRESETS, type ProviderId } from '../../../../api/providers/types'-export type OwnProviderId = 'openrouter' | 'groq' | 'together' | 'deepseek' | 'mistral' | 'openai' | 'anthropic' | 'custom'+export type OwnProviderId = 'openrouter' | 'groq' | 'together' | 'deepseek' | 'mistral' | 'minimax' | 'openai' | 'anthropic' | 'custom'export interface OwnProvider {id: OwnProviderId@@ -17,7 +17,7 @@ export interface OwnProvider {keyPlaceholder: string}-const HOSTED: ReadonlyArray<Exclude<OwnProviderId, 'custom' | 'anthropic'>> = ['openrouter', 'groq', 'together', 'deepseek', 'mistral', 'openai']+const HOSTED: ReadonlyArray<Exclude<OwnProviderId, 'custom' | 'anthropic'>> = ['openrouter', 'groq', 'together', 'deepseek', 'mistral', 'minimax', 'openai']function preset(id: string) {return PROVIDER_PRESETS.find((p) => p.id === id)