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

Function getCivitModelById

apps/node/src/modules/model-manager/civitai.ts:33–40  ·  view source on GitHub ↗
(modelId: string)

Source from the content-addressed store, hash-verified

31}
32
33export async function getCivitModelById(modelId: string) {
34 const headers = resolveCivitHeaders();
35 const ret = await proxyFetch(`https://api.civitai.com/v1/models/${modelId}`, {
36 headers,
37 })
38 const data = await ret.json()
39 return data
40}
41
42export async function getCivitModelByVersionId(modelVersionId: string) {
43 const headers = resolveCivitHeaders();

Callers 1

ApiGetCivitaiModelsFunction · 0.90

Calls 2

proxyFetchFunction · 0.90
resolveCivitHeadersFunction · 0.85

Tested by

no test coverage detected