@sellable/mcp 0.1.313 → 0.1.314
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -126,11 +126,12 @@ function acceptsReasoning(reasoning, hostConfig) {
|
|
|
126
126
|
.map((value) => normalizeReasoning(value))
|
|
127
127
|
.includes(normalized);
|
|
128
128
|
}
|
|
129
|
-
function modelMeetsMinimum(model, hostConfig) {
|
|
129
|
+
function modelMeetsMinimum(model, hostConfig, options = {}) {
|
|
130
130
|
const normalizedModel = normalize(model).replace(/[_-]+/g, " ");
|
|
131
131
|
if (!normalizedModel)
|
|
132
132
|
return false;
|
|
133
|
-
const familyMatches =
|
|
133
|
+
const familyMatches = options.familyKnownFromHost === true ||
|
|
134
|
+
hostConfig.familyKeywords.every((keyword) => normalizedModel.includes(normalize(keyword)));
|
|
134
135
|
if (!familyMatches)
|
|
135
136
|
return false;
|
|
136
137
|
const versions = extractModelVersions(normalizedModel);
|
|
@@ -145,7 +146,9 @@ function findAcceptedHostConfig(host, model, config) {
|
|
|
145
146
|
["codex", config.hosts.codex],
|
|
146
147
|
]
|
|
147
148
|
: [[host, config.hosts[host]]];
|
|
148
|
-
return candidates.find(([, hostConfig]) => modelMeetsMinimum(model, hostConfig
|
|
149
|
+
return candidates.find(([, hostConfig]) => modelMeetsMinimum(model, hostConfig, {
|
|
150
|
+
familyKnownFromHost: host !== "unknown",
|
|
151
|
+
}));
|
|
149
152
|
}
|
|
150
153
|
function looksLikeCodexStaleMetadata(host, model, reasoningEffort, config) {
|
|
151
154
|
if (host !== "codex")
|