Skip to content

Graphorin API reference v0.12.1


Graphorin API reference / @graphorin/embedder-ollama / / canonicalConfigHash

Function: canonicalConfigHash()

ts
function canonicalConfigHash(config): string;

Defined in: packages/embedder-ollama/src/index.ts:375

Canonical-JSON deterministic hash over an embedder configuration. Object keys are sorted lexicographically so the resulting hash is stable across JSON.stringify reorderings.

Parameters

ParameterType
configunknown

Returns

string

Stable