MCPcopy Create free account
hub / github.com/anomalyco/models.dev / translateModel

Function translateModel

packages/core/test/sync.test.ts:225–242  ·  view source on GitHub ↗
(model)

Source from the content-addressed store, hash-verified

223 return raw as { id: string }[];
224 },
225 translateModel(model) {
226 return {
227 id: model.id,
228 model: {
229 name: "Example Model",
230 description: "Example model used to verify sync formatting behavior",
231 release_date: "2026-01-01",
232 last_updated: "2026-01-01",
233 attachment: false,
234 reasoning: false,
235 tool_call: true,
236 open_weights: false,
237 cost: { input: 3, output: 9 },
238 limit: { context: 1_000, output: 100 },
239 modalities: { input: ["text"], output: ["text"] },
240 },
241 };
242 },
243 };
244
245 try {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected