mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-05-06 21:52:54 +08:00
* feature(llm): add llm-list details, add autostart for llm-save-instant-model * fix(llm): adjust some interfaces * fix: name-dup problem when create llm * fix: install instant-model by id rather than modelID * fix(llm): add llm_id for mcp-agent * feature(llm): move network from sku to instance * feature(llm): add LLMType for llm-image * feature(llm): add gpuMemoryRequired & ollama-registry yaml * feature(llm): add url-get interface * feature(llm): support mcp in mcp-agent-chat * fix(llm): abstract ollama registry
24 lines
879 B
Go
24 lines
879 B
Go
package llm
|
|
|
|
import (
|
|
"yunion.io/x/onecloud/cmd/climc/shell"
|
|
modules "yunion.io/x/onecloud/pkg/mcclient/modules/llm"
|
|
options "yunion.io/x/onecloud/pkg/mcclient/options/llm"
|
|
)
|
|
|
|
func init() {
|
|
cmd := shell.NewResourceCmd(&modules.LLMs)
|
|
cmd.BatchCreate(new(options.LLMCreateOptions))
|
|
cmd.List(new(options.LLMListOptions))
|
|
cmd.Show(new(options.LLMShowOptions))
|
|
cmd.Delete(new(options.LLMDeleteOptions))
|
|
// cmd.Perform("change-model", new(options.LLMChangeModelOptions))
|
|
cmd.Perform("syncstatus", new(options.LLMIdOptions))
|
|
cmd.BatchPerform("stop", new(options.LLMStopOptions))
|
|
cmd.BatchPerform("start", new(options.LLMStartOptions))
|
|
cmd.Get("probed-models", new(options.LLMIdOptions))
|
|
cmd.Get("url", new(options.LLMIdOptions))
|
|
cmd.Perform("save-instant-model", new(options.LLMSaveInstantModelOptions))
|
|
cmd.Perform("quick-models", new(options.LLMQuickModelsOptions))
|
|
}
|