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): Magnitude as a local provider preset (#214)
purple4abd221ff3da
diff --git a/src/api/__tests__/magnitude-is-a-local-preset-214.test.ts b/src/api/__tests__/magnitude-is-a-local-preset-214.test.tsnew file mode 100644index 00000000..a106366c--- /dev/null+++ b/src/api/__tests__/magnitude-is-a-local-preset-214.test.ts@@ -0,0 +1,31 @@+/**+ * GH #214 (KensonPlayz): Magnitude (magnitudedev/magnitude) as a backend.+ * Its docs (cli/src/agent-docs/topics/remote-access.md, read 2026-11-14):+ * the OpenAI compatible API is on port 10100 under /inference/v1, on+ * 127.0.0.1 only unless Network access is on, and needs no key locally. So it+ * is a local preset like LM Studio, found by the same startup probe.+ *+ * Run: npx vitest run src/api/__tests__/magnitude-is-a-local-preset-214.test.ts+ */+import { describe, it, expect } from 'vitest'+import { PROVIDER_PRESETS } from '../providers/types'+import { PROBE_TARGETS } from '../../lib/backend-detector'++describe('Magnitude', () => {+ it('is a local OpenAI compatible preset on its documented address', () => {+ expect(PROVIDER_PRESETS.find((p) => p.id === 'magnitude')).toEqual({+ id: 'magnitude', name: 'Magnitude', providerId: 'openai', baseUrl: 'http://127.0.0.1:10100/inference/v1', isLocal: true,+ })+ })++ it('is looked for at startup, at its models list', () => {+ const t = PROBE_TARGETS.find((p) => p.id === 'magnitude')!+ expect(t).toBeDefined()+ expect(`${t.baseUrl}/models`).toBe('http://127.0.0.1:10100/inference/v1/models')+ })++ it('NEGATIVE CONTROL: it asks for no key and no other preset moved', () => {+ expect(PROVIDER_PRESETS.find((p) => p.id === 'magnitude')).not.toHaveProperty('placeholder')+ expect(PROVIDER_PRESETS.find((p) => p.id === 'lmstudio')!.baseUrl).toBe('http://localhost:1234/v1')+ })+})diff --git a/src/api/providers/types.ts b/src/api/providers/types.tsindex 2afab9dc..e4a9e10c 100644--- a/src/api/providers/types.ts+++ b/src/api/providers/types.ts@@ -118,6 +118,10 @@ export const PROVIDER_PRESETS: ProviderPreset[] = [{ id: 'aphrodite', name: 'Aphrodite', providerId: 'openai', baseUrl: 'http://localhost:2242/v1', isLocal: true },{ id: 'sglang', name: 'SGLang', providerId: 'openai', baseUrl: 'http://localhost:30000/v1', isLocal: true },{ id: 'tgi', name: 'TGI (HuggingFace)', providerId: 'openai', baseUrl: 'http://localhost:8080/v1', isLocal: true },+ // GH #214: Magnitude (magnitudedev/magnitude, Apache 2.0). Its docs: the+ // OpenAI compatible API is served on port 10100 under /inference/v1, on+ // 127.0.0.1 only unless Network access is on, no key needed locally.+ { id: 'magnitude', name: 'Magnitude', providerId: 'openai', baseUrl: 'http://127.0.0.1:10100/inference/v1', isLocal: true },// ── Cloud providers (API key required) ───────────────────{ id: 'openrouter', name: 'OpenRouter', providerId: 'openai', baseUrl: 'https://openrouter.ai/api/v1', isLocal: false, placeholder: 'sk-or-...' },