mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-09-24 13:37:01 +02:00
Add ModelDraftSidecar / ModelAuxSidecar enums with a ModelSidecar union type; mmproj is the only auxiliary sidecar (single member, covers vision and audio input). Add SIDECAR_PREFIX/SUFFIX_RE regex matching the server's filename conventions, and type guards + enum-file-token helpers in model-id.constants.ts. Extend parseModelId to detect sidecar filename tokens (mtp-, mmproj-, etc) and expose isDraftSidecar / isAuxSidecar / sidecarFromFileToken helpers. Add ModelCapability.TOOL_USE with icon/label/flag mappings. Assisted-by: pi