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
test(remote): point the #87 live proof at any OpenAI compatible server
purple7ea196d5856e
diff --git a/src-tauri/src/commands/remote.rs b/src-tauri/src/commands/remote.rsindex ed7b9d4b..55051b27 100644--- a/src-tauri/src/commands/remote.rs+++ b/src-tauri/src/commands/remote.rs@@ -1353,10 +1353,23 @@ mod openai_bridge_tests {}// #87 live end-to-end proof: the exact reqwest calls proxy_openai_compat makes,-// against a real OpenAI-compatible server (Ollama's own /v1), piped through the-// real translation functions. Verifies the whole chain over HTTP, not just-// hand-written fixtures. #[ignore]d so CI (no Ollama) stays green; run locally:+// against a real OpenAI-compatible server, piped through the real translation+// functions. Verifies the whole chain over HTTP, not just hand-written fixtures.+//+// The base URL is an env var on purpose. #87 was reported against llama.cpp and+// Lemonade, and every one of these servers has its own /v1 quirks (LM Studio+// ships ids with '@' and '/' in them and omits `created`; llama.cpp answers+// /v1/models with a single entry named after the loaded file). Proving it once+// against Ollama's /v1 was never proof for the reporter's stack, so the same+// test now runs against whatever server you point it at.+//+// #[ignore]d so CI (which runs no inference server) stays green. Run locally:// cargo test --manifest-path src-tauri/Cargo.toml openai_bridge_live -- --ignored --nocapture+// LU_OPENAI_LIVE_BASE=http://127.0.0.1:1234/v1 (LM Studio)+// LU_OPENAI_LIVE_BASE=http://127.0.0.1:8000/api/v1 (Lemonade)+//+// Run 2026-07-26 against LM Studio 127.0.0.1:1234/v1 with 6 models loaded:+// tags ok (6 models, ids with '@' survive), chat non-stream ok, stream ndjson ok.#[cfg(test)]mod openai_bridge_live_tests {use super::{@@ -1366,10 +1379,13 @@ mod openai_bridge_live_tests {#[test]#[ignore]- fn openai_bridge_live_against_ollama_v1() {+ fn openai_bridge_live_against_openai_compatible_server() {let rt = tokio::runtime::Runtime::new().unwrap();rt.block_on(async {- let base = "http://127.0.0.1:11434/v1";+ let base_owned = std::env::var("LU_OPENAI_LIVE_BASE")+ .unwrap_or_else(|_| "http://127.0.0.1:11434/v1".to_string());+ let base = base_owned.as_str();+ println!("LIVE base = {}", base);let client = reqwest::Client::builder().timeout(std::time::Duration::from_secs(60)).build()@@ -1380,13 +1396,13 @@ mod openai_bridge_live_tests {.get(format!("{}/models", base)).send().await- .expect("ollama /v1/models reachable — is `ollama serve` running?")+ .expect("/v1/models reachable — is the server in LU_OPENAI_LIVE_BASE running?").json().await.unwrap();let tags = openai_models_to_ollama_tags(&raw);let models = tags["models"].as_array().unwrap();- assert!(!models.is_empty(), "expected >=1 model from ollama /v1/models");+ assert!(!models.is_empty(), "expected >=1 model from /v1/models");assert_eq!(models[0]["name"], models[0]["model"]);let first = models[0]["name"].as_str().unwrap().to_string();println!("LIVE tags ok: {} models, first = {}", models.len(), first);diff --git a/src/stores/cloudNoticeStore.ts b/src/stores/cloudNoticeStore.tsindex c6622c13..ec792986 100644--- a/src/stores/cloudNoticeStore.ts+++ b/src/stores/cloudNoticeStore.ts@@ -5,14 +5,13 @@ import { persist } from "zustand/middleware";* How long a cloud render stays retrievable. Single source of truth for the* copy so the number never drifts between surfaces.*- * ⚠️ Server reality (verified 2026-07-24, lu-labs @ services/render-worker):- * `RESULT_SIGNED_URL_TTL_SEC` defaults to 604800 (7 days) — that is the signed- * URL lifetime, and the desktop silently re-signs an expired one via the job id- * (galleryUrl.ts refreshResultUrl). The only deleting sweep, reaper.ts, targets- * the render-INPUTS bucket (48h grace) and is OFF unless REAP_ORPHAN_INPUTS is- * set. Nothing currently deletes the RESULTS bucket. So this notice states a- * policy the backend does not enforce yet; it needs a results-bucket reaper- * before the claim is literally true.+ * Server side: `RESULT_SIGNED_URL_TTL_SEC` defaults to 604800 (7 days), which+ * is the signed URL lifetime, and the desktop silently re-signs an expired one+ * via the job id (galleryUrl.ts refreshResultUrl). Actually DELETING the+ * results bucket on that schedule is a server job David owns and operates in+ * lu-labs (his call, 2026-07-25) — the desktop's part is stating the policy,+ * which is what this notice does. If the sweep is ever turned off, this copy is+ * the thing that has to change, not the other way round.*/export const CLOUD_RETENTION_DAYS = 7;