(basePath string, name string)
| 342 | } |
| 343 | |
| 344 | func GetLocalModelConfiguration(basePath string, name string) (*ModelConfig, error) { |
| 345 | name = strings.ReplaceAll(name, string(os.PathSeparator), "__") |
| 346 | galleryFile := filepath.Join(basePath, galleryFileName(name)) |
| 347 | return ReadConfigFile[ModelConfig](galleryFile) |
| 348 | } |
| 349 | |
| 350 | func listModelFiles(systemState *system.SystemState, name string) ([]string, error) { |
| 351 |
no test coverage detected