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
fix(test): der Kettentest tippt auf CloudModel statt auf die Union
purple290bd0814a44
diff --git a/src/components/chat/__tests__/effort-reaches-the-composer.test.ts b/src/components/chat/__tests__/effort-reaches-the-composer.test.tsindex 93b6de1f..d7b8d71f 100644--- a/src/components/chat/__tests__/effort-reaches-the-composer.test.ts+++ b/src/components/chat/__tests__/effort-reaches-the-composer.test.ts@@ -33,7 +33,7 @@ import { cloudModelRow } from '../../../lib/cloud-model-row'import { useSettingsStore } from '../../../stores/settingsStore'import { useModelStore } from '../../../stores/modelStore'import { DEFAULT_SETTINGS } from '../../../lib/constants'-import type { AIModel } from '../../../types/models'+import type { CloudModel } from '../../../types/models'vi.mock('../VoiceButton', () => ({ VoiceButton: () => null }))@@ -75,8 +75,10 @@ function serveCatalogue() {}) as typeof fetch)}-/** The real chain: HTTP, provider, row mapper, store. */-async function loadCatalogueFrom(baseUrl: string): Promise<AIModel[]> {+/** The real chain: HTTP, provider, row mapper, store. CloudModel, not the+ * AIModel union: the fields under test live on the cloud row, and narrowing+ * them away in the test would hide exactly the loss this file exists for. */+async function loadCatalogueFrom(baseUrl: string): Promise<CloudModel[]> {const provider = new OpenAIProvider({id: 'lu-cloud', name: 'LU Cloud', enabled: true, baseUrl, apiKey: 'test-token', isLocal: false,})