Expand description
Location and accessors for the bundled local-model base URL.
Hub starts an MLX inference server on an ephemeral port and writes its OpenAI-compatible base URL here. Agents — started by launchd and therefore NOT inheriting Hub’s environment — read it back from this file.
Constants§
- DEFAULT_
LOCAL_ MODEL_ DIR - Directory name (under
<mur_home>/models/). - DEFAULT_
LOCAL_ MODEL_ REPO - HuggingFace repo holding bundled-free local model.
Functions§
- base_
url_ path - Path to the file holding the local model base URL, under
<mur_home>. - local_
model_ dir - Path to the local model directory under
<mur_home>/models/<model_dir>. - model_
complete_ marker - Path to the model-complete marker file (
.complete) within the model directory. - read_
base_ url - Read the base URL, trimming whitespace.
Noneif absent/empty. - write_
base_ url - Atomically write the base URL (temp file + rename).