mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-28 19:58:11 +08:00
Go CLI: refactor commands (#16447)
### Summary 1. Move debug commands to dev file. 2. Refactor some commands syntax --------- Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -40,9 +40,9 @@ func TestParseAddModelWithDimensions(t *testing.T) {
|
||||
}{
|
||||
{
|
||||
name: "Add model with detailed embedding dimensions",
|
||||
input: "add model 'x1 x2 x3 x4 x5' to provider 'vllm' instance 'test' with tokens 1024 chat think vision, token 2048 chat, token 1024 think vision, token 0 embedding 2048 64 1024 2048, token 0 embedding 2048;",
|
||||
input: "add model 'x1 x2 x3 x4 x5' to provider 'vllm' instance 'test' tokens 1024 chat think vision, token 2048 chat, token 1024 think vision, token 0 embedding 2048 64 1024 2048, token 0 embedding 2048;",
|
||||
expected: &Command{
|
||||
Type: "add_custom_model",
|
||||
Type: "api_add_custom_model",
|
||||
Params: map[string]interface{}{
|
||||
"provider_name": "vllm",
|
||||
"instance_name": "test",
|
||||
|
||||
Reference in New Issue
Block a user