(model: MarketModel)
| 174 | } |
| 175 | |
| 176 | export 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 | |
| 185 | export function findValueInModelOptions(options: (string[] | LoRAOptionValue[]), value: string | LoRAOptionValue | MarketModel): string | LoRAOptionValue | undefined { |
| 186 | if (typeof value === "string") { |
no outgoing calls
no test coverage detected