MCPcopy Index your code
hub / github.com/anomalyco/models.dev / translateModel

Method translateModel

packages/core/src/sync/index.ts:64–64  ·  view source on GitHub ↗
(
    model: SourceModel,
    context: {
      existing(id: string): ExistingModel | undefined;
      authored(id: string): ExistingModel | undefined;
    },
  )

Source from the content-addressed store, hash-verified

62 fetchModels(): Promise<unknown>;
63 parseModels(raw: unknown): SourceModel[];
64 translateModel(
65 model: SourceModel,
66 context: {
67 existing(id: string): ExistingModel | undefined;

Callers 2

sync.test.tsFile · 0.80
syncProviderFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected