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

Function getFilePathFromMarktModel

packages/common/types/model.types.ts:176–183  ·  view source on GitHub ↗
(model: MarketModel)

Source from the content-addressed store, hash-verified

174}
175
176export function getFilePathFromMarktModel(model: MarketModel): { withHashPath: string, withOutHashPath: string} {
177 const withOutHashPath = `${model.filename}`
178 const withHashPath = `${model.source}___${model.sha256}___${model.filename}`
179 return {
180 withHashPath,
181 withOutHashPath
182 }
183}
184
185export function findValueInModelOptions(options: (string[] | LoRAOptionValue[]), value: string | LoRAOptionValue | MarketModel): string | LoRAOptionValue | undefined {
186 if (typeof value === "string") {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected