Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
fix: show correct bool value for kv in verbose show information (#9928)
Patrick Devine6d1103048eac
diff --git a/cmd/cmd.go b/cmd/cmd.goindex 710f49a72..abb4806b5 100644--- a/cmd/cmd.go+++ b/cmd/cmd.go@@ -703,6 +703,8 @@ func showInfo(resp *api.ShowResponse, verbose bool, w io.Writer) error {for _, k := range keys {var v stringswitch vData := resp.ModelInfo[k].(type) {+ case bool:+ v = fmt.Sprintf("%t", vData)case string:v = vDatacase float64:diff --git a/cmd/cmd_test.go b/cmd/cmd_test.goindex 41b03e1bd..ea3bdffe8 100644--- a/cmd/cmd_test.go+++ b/cmd/cmd_test.go@@ -87,6 +87,8 @@ func TestShowInfo(t *testing.T) {ModelInfo: map[string]any{"general.architecture": "test","general.parameter_count": float64(8_000_000_000),+ "some.true_bool": true,+ "some.false_bool": false,"test.context_length": float64(1000),"test.embedding_length": float64(11434),},@@ -111,6 +113,8 @@ func TestShowInfo(t *testing.T) {Metadatageneral.architecture testgeneral.parameter_count 8e+09+ some.false_bool false+ some.true_bool truetest.context_length 1000test.embedding_length 11434