mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-12 03:33:33 +08:00
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:
@@ -132,7 +132,7 @@ func (c *CLI) ExecuteAdminCommand(cmd *Command) (ResponseIf, error) {
|
||||
case "admin_list_provider_instances":
|
||||
return c.CommonListProviderInstances(cmd)
|
||||
case "admin_show_model":
|
||||
return c.CommonShowModel(cmd)
|
||||
return c.CommonShowModelCommand(cmd)
|
||||
case "admin_list_providers":
|
||||
return c.AdminListProvidersCommand(cmd)
|
||||
case "admin_list_all_models":
|
||||
@@ -358,10 +358,8 @@ func (c *CLI) ExecuteUserCommand(cmd *Command) (ResponseIf, error) {
|
||||
return c.CommonListInstanceModelsSyncCommand(cmd)
|
||||
case "api_list_provider_instance_tasks":
|
||||
return c.APIListModelInstanceTasksCommand(cmd)
|
||||
case "show_provider_model":
|
||||
return c.CommonShowProviderModelCommand(cmd)
|
||||
case "show_model":
|
||||
return c.CommonShowModel(cmd)
|
||||
case "api_show_model":
|
||||
return c.CommonShowModelCommand(cmd)
|
||||
case "list_all_models":
|
||||
return c.ListAllModels(cmd)
|
||||
// Provider commands
|
||||
|
||||
Reference in New Issue
Block a user