Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
add model format to config layer (#497)
Jeffrey Morgan3920e15386e2
diff --git a/server/images.go b/server/images.goindex 737b93ca5..21b91843c 100644--- a/server/images.go+++ b/server/images.go@@ -116,6 +116,7 @@ type LayerReader struct {type ConfigV2 struct {ModelFamily llm.ModelFamily `json:"model_family"`ModelType string `json:"model_type"`+ ModelFormat string `json:"model_format"`FileType string `json:"file_type"`RootFS RootFS `json:"rootfs"`@@ -335,6 +336,7 @@ func CreateModel(ctx context.Context, name string, path string, fn func(resp apiconfig.ModelFamily = ggml.ModelFamily()config.ModelType = ggml.ModelType().String()+ config.ModelFormat = ggml.Name()config.FileType = ggml.FileType().String()// reset the file@@ -369,6 +371,7 @@ func CreateModel(ctx context.Context, name string, path string, fn func(resp api// copie the model metadataconfig.ModelFamily = source.ModelFamilyconfig.ModelType = source.ModelType+ config.ModelFormat = source.ModelFormatconfig.FileType = source.FileTypefor _, l := range mf.Layers {