Go CLI: Fix show model and list models (#16380)

### What problem does this PR solve?

```
RAGFlow(api/default)> show model 'WiseDiag-Z1 Think';

RAGFlow(api/default)> list models;

RAGFlow(admin)> show model 'WiseDiag-Z1 Think';

RAGFlow(admin)> list models;
```

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-06-26 15:36:01 +08:00
committed by GitHub
parent 0de8f3e127
commit 2667995b25
9 changed files with 154 additions and 139 deletions

View File

@@ -1432,7 +1432,7 @@ func (c *CLI) ListAllModels(cmd *Command) (ResponseIf, error) {
return &result, nil
}
func (c *CLI) CommonShowModel(cmd *Command) (ResponseIf, error) {
func (c *CLI) CommonShowModelCommand(cmd *Command) (ResponseIf, error) {
modelName, ok := cmd.Params["model_name"].(string)
if !ok {