evidence-mcp-dev 1.0.16 → 1.0.17
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.
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5248,7 +5248,7 @@ async function verifyClaim(claim, id, cfg, decide, read2 = readPaper) {
|
|
|
5248
5248
|
const paper = await read2(id);
|
|
5249
5249
|
out.id = paper.id;
|
|
5250
5250
|
if ("error" in paper) return { ...out, error: paper.error };
|
|
5251
|
-
if (!cfg || !decide) return { ...out, error: "no
|
|
5251
|
+
if (!cfg || !decide) return { ...out, error: "no decision model configured: set FH_VERIFY_PROVIDER and its API key in .env" };
|
|
5252
5252
|
out.basis = paper.basis;
|
|
5253
5253
|
out.glyphs_unresolved = countUnresolved(paper.text);
|
|
5254
5254
|
if (paper.basis === "title") return { ...out, verdict: "fail", reason: NOTHING_TO_VERIFY };
|
|
@@ -5981,7 +5981,7 @@ function noticeTag(m) {
|
|
|
5981
5981
|
].filter(Boolean);
|
|
5982
5982
|
return parts.length ? " " + parts.join(" ") : "";
|
|
5983
5983
|
}
|
|
5984
|
-
var modelFailure = (error, cfg) => error.startsWith("no
|
|
5984
|
+
var modelFailure = (error, cfg) => error.startsWith("no decision model configured") || !!cfg && error.startsWith(`${cfg.model}:`);
|
|
5985
5985
|
function registerTools(server2) {
|
|
5986
5986
|
async function completeFulltext(paths, meta, requested) {
|
|
5987
5987
|
const paper = { title: meta.title, pmid: meta.pmid, pmcid: meta.pmcid, doi: meta.doi, headLine: readHeadLine(paths) };
|