Skip to content

Graphorin API reference v0.1.0


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

Function: canonicalConfigHash()

ts
function canonicalConfigHash(config): string;

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

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