On this page
Overview
Validates and canonicalizes the syntax of Ollama model identifiers without granting model admission.
- Artifact
OllamaModelIdentifier.js· esm - Classification
public first party - Availability
Cross-host - Normalization
Fully normalized string/boolean result.
Import and lifecycle
import * as module from '/arcane/modules/OllamaModelIdentifier.js';
Pure syntax normalization; does not test installation, admission, ownership, or hardware.
Application-facing behavior: normalizeOllamaModelIdentifier(), isOllamaModelIdentifier().
Protocol and host implementation
In-process only This detail does not widen the application-facing API or grant authority.
Exports, signatures, parameters, and results
| Binding | Form | Declaration or signature | Parameter syntax |
|---|---|---|---|
normalizeOllamaModelIdentifier | function | function normalizeOllamaModelIdentifier(value) | value |
isOllamaModelIdentifier | function | function isOllamaModelIdentifier(value) | value |
| Callable | Kind | Exact public signature | Parameter syntax |
|---|---|---|---|
normalizeOllamaModelIdentifier | exported-function | function normalizeOllamaModelIdentifier(value) | value |
isOllamaModelIdentifier | exported-function | function isOllamaModelIdentifier(value) | value |
Parameter meanings and results
normalizeOllamaModelIdentifier(value) returns the exact trimmed identifier or null; isOllamaModelIdentifier(value) returns boolean. The cloud default-model sentinel TWIN and malformed/over-limit identifiers are rejected.
Events, side effects, and errors
Source-literal CustomEvent dispatches
No source-literal CustomEvent dispatch is part of this artifact.
Lifecycle and event flow
This artifact has no additional documented lifecycle event flow.
Direct coded failures
This artifact directly assigns no stable coded failure.
Exported Error subclasses
This artifact exports no Error subclass.
Documented failure behavior
No additional module-specific rejection behavior is documented.
Availability and capabilities
Cross-host. Fully normalized string/boolean result.
None.
Contract example
import {normalizeOllamaModelIdentifier} from '/arcane/modules/OllamaModelIdentifier.js';
console.log(normalizeOllamaModelIdentifier('llama3.2:latest'));
Related reference
No direct Core call is claimed for this artifact. Any injected provider or consuming module retains its own documented authority.