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

Function parseModels

packages/core/src/sync/providers/openrouter.ts:93–95  ·  view source on GitHub ↗
(raw)

Source from the content-addressed store, hash-verified

91 return response.json();
92 },
93 parseModels(raw) {
94 return OpenRouterResponse.parse(raw).data;
95 },
96 translateModel(model, context) {
97 // OpenRouter serves deprecated/unavailable routes as degraded stubs:
98 // negative pricing (`"-1"`) and an empty `supported_parameters` array. Syncing

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected