Skip to content

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.

Keep the browser test platform a literal type

Davidb3377b1ed291
diff --git a/e2e/trainer-error-readable.spec.ts b/e2e/trainer-error-readable.spec.ts
index a18bb6b6..0e6b3dca 100644
--- a/e2e/trainer-error-readable.spec.ts
+++ b/e2e/trainer-error-readable.spec.ts
@@ -5,7 +5,7 @@ import { routeCloud, seedOnboardingDone, cloudSwitch } from './support/cloud-moc
for (const ready of [false, true]) {
test(`trainer failure remains readable with environment ready=${ready}`, async ({ page }) => {
await page.addInitScript(tauriMockInit, {
- assistantReply: DEFAULT_ASSISTANT_REPLY, modelName: DEFAULT_MODEL_NAME, platform: 'windows',
+ assistantReply: DEFAULT_ASSISTANT_REPLY, modelName: DEFAULT_MODEL_NAME, platform: 'windows' as const,
})
await page.addInitScript(({ ready }) => {
const bridge = (window as any).__TAURI_INTERNALS__