types: ConfigV2 and RootFS (#13504)

Refactored the ConfigV2 and RootFS types from server/images.go to a new types/model/config.go file under the model package. Updated all references to use model.ConfigV2 and model.RootFS. This allows for use in other projects without worrying about compiling the c code in the llama package.
This commit is contained in:
Bruce MacDonald
2025-12-16 15:18:17 -08:00
committed by GitHub
parent 2dd029de12
commit 45c4739374
7 changed files with 48 additions and 45 deletions

View File

@@ -1223,7 +1223,7 @@ func (s *Server) ListHandler(c *gin.Context) {
models := []api.ListModelResponse{}
for n, m := range ms {
var cf ConfigV2
var cf model.ConfigV2
if m.Config.Digest != "" {
f, err := m.Config.Open()