Files
Strata/apps/host/server/policy-generated.mjs
T
Niko1221 efa9d6dbed DeepSeek out (5/7): the desktop app without DeepSeek; a DeepSeek model in the list says where its files are and is not loaded
- apps/host: the DeepSeek card, note, Speed (DeepSeek) setting, context list, picture tower, engine options, the
  "DeepSeek" engine family and its update line go (server/dsv41-context.mjs, server/native-ds-args.mjs,
  src/lib/deepseek-context.ts, src/lib/deepseek-speed.ts deleted; native-control, native-settings, engine-library,
  native-vision, GuidedSetup, NativeModels, NativeSettings, VersionPicker, EngineUpdateCard, PcFitCard, engine-list,
  native-catalog, default-context, native.ts edited). withoutVisionFlag, used by the Qwen path, moves into
  native-control.mjs unchanged.
- A model Control lists as retired (strata_control/models.py, commit 2) shows on the Models screen with its line
  (the owner's D2) and cannot be loaded: loadEngine stops with Control's refusal (D1) before any fetch, file write or
  start; the Manage list and Settings > Storage leave it out (their delete removes files). plain-errors.ts shows the
  refusal as Control wrote it, with the approved next step (English; translations come with the owner's word).
  The host's autostart clears a remembered DeepSeek model and logs the refusal instead of trying to load it.
- The "DeepSeek speed-ups" switch leaves strata_control/speed_switches.py (a DeepSeek config gets no switch);
  app_policy.py loses the DeepSeek rows; policy-generated.mjs and tests/data/policy-vectors.json regenerated with
  `python -m strata_control.app_policy`.
- Locales: the 16 DeepSeek-only keys leave all nine languages (fx62-fx69, fx72, fx75, fx77, fx78, fx80, fx81,
  vp03). DeepSeek as a cloud provider / search key and the DeepSeek Harness are untouched (owner).
- Tests: the six DeepSeek-only app test files go; the DeepSeek cases of the shared ones become "listed as retired,
  refused, nothing saved or started"; test_speed_switches.py loses the DeepSeek switch rows.
2026-11-11 11:42:22 +01:00

14 lines
2.3 KiB
JavaScript

// GENERATED by `python -m strata_control.app_policy` from strata_control/speed_switches.py and strata_control/drafting.py. Do not edit it by hand:
// change the Python and regenerate; tests/terminal/test_app_policy.py and apps/host/tests/policy-generated.test.mjs fail when this file is out of date.
/** The speed switches of the app's Expert settings (strata_control/speed_switches.py app_switches()): id, words, default, the environment entries outside the default. */
export const SPEED_SWITCH_TABLE = [
{"id": "faster_long_prompts", "label": "Faster long prompts", "hint": "Reads very long prompts faster by approximating part of the work. Off by default: answers about long documents can miss or mix up details.", "default": "off", "env": {"STRATA_KVA": "1"}},
{"id": "faster_12gb_nvidia", "label": "Faster answers on 12 GB NVIDIA cards", "hint": "Prefers the parts of the model already on the graphics card, which makes answers faster on 12 GB cards. Off by default: in long agent sessions it can repeat itself and give weaker results. Turn on if you mostly chat and want the speed.", "default": "off", "env": {"STRATA_ROUTE_PRIOR": "1.5"}},
{"id": "faster_radeon_9000", "label": "Faster answers on Radeon RX 9000 / AI PRO R9700", "hint": "Shares the work between the graphics card and the processor in a way that makes answers faster on these cards. Turn off to go back to the previous setting, which is slower.", "default": "on", "env": {"STRATA_PCIE_FRAC_DEFAULT": "old"}},
{"id": "picture_reader", "label": "Picture reader", "hint": "Which program turns pictures into something the model can read. Strata's own is faster on most computers and reads very large pictures correctly; on a few graphics cards where it is still slower, Strata uses llama.cpp's by itself. Choose llama.cpp's if pictures look misread.", "default": "on", "env": {"STRATA_VISION_TOWER": "mtmd"}, "group": "Image reading", "words": {"on": "Strata's own (recommended)", "off": "llama.cpp's"}},
];
/** The families that have a Drafting choice (strata_control/drafting.py SUPPORTED_FAMILIES). */
export const DRAFTING_FAMILIES = ["qwen", "gyro", "unsloth"];
/** The model names the DFlash2 drafter was made for (strata_control/drafting.py _SUPPORTED_NAME), a case-insensitive pattern. */
export const DFLASH2_MODEL_PATTERN = "^qwen3\\.8-flash-next(-gyro-[a-z0-9._-]+|-unsloth-[a-z0-9._-]+|-(q|iq|tq)\\d[a-z0-9_.]*)?$";