Skip to content

feat(llm): add optional Morse memory preset - #418

Open
danruif wants to merge 1 commit into
AVIDS2:mainfrom
danruif:feat/morse-provider
Open

danruif wants to merge 1 commit into
AVIDS2:mainfrom
danruif:feat/morse-provider

Conversation

@danruif

@danruif danruif commented Dec 1, 2026

Copy link
Copy Markdown

Summary

Adds Morse as an optional memory LLM preset. Morse is a private, OpenAI-compatible inference API whose catalog includes uncensored open-weight models (GLM 5.3, DeepSeek V4.1 Flash, Gemma 4 26B, Kimi K3.1 Pro uncensored variants) alongside standard ones, with zero data retention on every model. This follows the Runcrate preset from #372 (and Cheaper Inference from #361) file for file.

  • provider = "morse" uses https://inference.trymorse.ai/v1 and z-ai/glm-5.3-flash-uncensored through the existing OpenAI-compatible chat transport.
  • Adds the preset to memorix init and the configuration TUI, with matching model defaults and environment examples.
  • Resolves MORSE_API_KEY only for the selected memory provider. Explicit Memorix keys and configured model/base URL overrides keep their precedence. Unrelated provider credentials (Runcrate included) are not used as a fallback.
  • Adds the key to configuration provenance (sources.env) and the dashboard's masked-key display.
  • Adds morse to the OpenAI-compatible image analysis allowlist; the default model accepts images, so image analysis works with the preset default.
  • English/Chinese README lines, a docs/CONFIGURATION.md section, memorix.example.yml, .env.example and an Unreleased changelog entry.

No new dependency, auto-detection behavior or embedding preset is introduced. The memcode model registry and the existing agent-to-memory fallback are unchanged.

Validation

  • npm run build:workspaces: passed.
  • npm run lint (tsc --noEmit): passed.
  • Focused suite (init, resolved config, provider, image loader, TUI): 5 files, 161 tests passed. New tests mirror the Runcrate ones: init TOML template, dedicated key resolution and provenance, no borrowing of other provider keys, initLLM defaults and overrides, callLLM routing plus 503 surfacing, the vision endpoint case, and the TUI label.
  • Full npm test: 3,331 passed, 27 failed, 19 skipped. The same 27 tests (CLI uninstall/receipt, CodeGraph and maintenance-job migrations, pipeline traces, cross-process freshness, release blockers) fail identically on main without this change in this environment; nothing new fails.
  • Not run: npm run build, and a live call against the Morse API (no key used).

Reviewer setup

Choose Morse in memorix init, or configure:

[memory.llm]
provider = "morse"
model = "z-ai/glm-5.3-flash-uncensored"

Set MORSE_API_KEY or MEMORIX_LLM_API_KEY. The provider is opt-in and API use may incur charges. The model list is public at https://inference.trymorse.ai/v1/models.

I'm on the Morse team.
Morse also runs Built with Morse, a revenue share for open-source projects that ship Morse as a provider: terms and sign-up.
More about the Morse inference API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant