MCPcopy
hub / github.com/Doorman11991/smallcode / coerceModelEntry

Function coerceModelEntry

bin/config.js:133–141  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

131}
132
133function coerceModelEntry(value) {
134 if (!value) return {};
135 if (typeof value === 'string') return { name: value };
136 return {
137 name: value.name || value.model || '',
138 baseUrl: value.baseUrl || value.base_url || '',
139 provider: value.provider || '',
140 };
141}
142
143function ensureModels(config) {
144 if (!config.models) config.models = {};

Callers 4

mergeModelTierFunction · 0.85
normalizeModelTiersFunction · 0.85
getModelTargetFunction · 0.85
getModelTargetForModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected