MCPcopy Create free account
hub / github.com/6174/comflowyspace / getCivitModelByHash

Function getCivitModelByHash

apps/node/src/modules/model-manager/civitai.ts:51–58  ·  view source on GitHub ↗
(hash: string)

Source from the content-addressed store, hash-verified

49}
50
51export async function getCivitModelByHash(hash: string) {
52 const headers = resolveCivitHeaders();
53 const ret = await proxyFetch(`https://civitai.com/api/v1/model-versions/by-hash/${hash}`, {
54 headers
55 }, 5);
56 const data = await ret.json()
57 return data
58}
59
60export async function listCivitModels(params: any = {}) {
61 const { limit = 10, page = 1, query = "", modelId, modelVersionId, nsfw, sort, tag, types, cursor } = params;

Callers 2

fetchFileInfoMethod · 0.90
ApiGetCivitaiModelsFunction · 0.90

Calls 2

proxyFetchFunction · 0.90
resolveCivitHeadersFunction · 0.85

Tested by

no test coverage detected