mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 10:26:53 +02:00
fix: show correct bool value for kv in verbose show information (#9928)
This commit is contained in:
parent
0ff28758b3
commit
6d1103048e
2 changed files with 6 additions and 0 deletions
|
@ -703,6 +703,8 @@ func showInfo(resp *api.ShowResponse, verbose bool, w io.Writer) error {
|
|||
for _, k := range keys {
|
||||
var v string
|
||||
switch vData := resp.ModelInfo[k].(type) {
|
||||
case bool:
|
||||
v = fmt.Sprintf("%t", vData)
|
||||
case string:
|
||||
v = vData
|
||||
case float64:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue