Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++
1.2 KB
Raw Blame
import { tr } from '../lib/i18n';
import { Icon } from './ui';
import type { NativeState } from '../lib/native';

/** The app could not find or recognise an engine for this computer (none installed and none in the feed, another card family, a driver that is too old). It still downloads the model
 *  (owner decision 2026-10-18) and says so before and during the download; loading says the same with the next step. */
export const engineMissing = (native: NativeState | null | undefined) => !!native?.engine && native.engine.usable === false;

export function EngineWarning({ native }: { native: NativeState | null | undefined }) {
  if (!engineMissing(native)) return null;
  if (native?.engine?.wrongMake && native.engine.notice) return <div className="engine-warning" role="status"><Icon name="info" size={18}/><div><p>{native.engine.notice}</p></div></div>;
  return <div className="engine-warning" role="status"><Icon name="info" size={18}/><div><p>{tr("Strata didn’t recognise an engine for this computer. The model will download, but it may not run until the right engine is installed (Settings → Engine).")}</p>{native?.engine?.notice ? <small className="muted">{native.engine.notice}</small> : null}</div></div>;
}