MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / testProvider

Function testProvider

deployments/desktop/static/app.js:1357–1366  ·  view source on GitHub ↗
(kind)

Source from the content-addressed store, hash-verified

1355}
1356
1357async function testProvider(kind) {
1358 const label = kind === "embedding" ? "Embedding" : "LLM";
1359 setStatus(`测试 ${label}`, true);
1360 const data = await api("/api/provider-test", {
1361 method: "POST",
1362 body: JSON.stringify({ kind }),
1363 });
1364 $("providerTestOutput").textContent = JSON.stringify(data, null, 2);
1365 setStatus(`${label} 测试完成`);
1366}
1367
1368function escapeHtml(value) {
1369 return String(value || "")

Callers 1

bindEventsFunction · 0.70

Calls 3

setStatusFunction · 0.70
apiFunction · 0.70
$Function · 0.70

Tested by

no test coverage detected