【求助】cli如何使用模型库的模型呢?

│                                                                                                                                                                      │
│ Model Selection                                                                                                                                                      │
│                                                                                                                                                                      │
│ Please select the model you want to use with iFlow.                                                                                                                  │
│                                                                                                                                                                      │
│ Enter To Use Default selection: GLM 4.7                                                                                                                              │
│                                                                                                                                                                      │
│ ● 1. Qwen3-Coder-Plus                                                                                                                                                │
│   2. Qwen3-Coder-Quick                                                                                                                                               │
│   3. GLM-4.6                                                                                                                                                         │
│   4. GLM-4.7                                                                                                                                                         │
│   5. Kimi-K2                                                                                                                                                         │
│                                                                                                                                                                      │
│ (Use Enter to select, Esc to cancel)                                                                                                                                 │
│                                           

我的cli本地只有这些,如何增加模型库中的模型到选项呢?:folded_hands:

到模型库复制模型id,然后在配置文件里修改模型名就行了

1 个赞

感谢回答。请问是settings.json文件的modelName吗?修改我执行了没用。✕ [API Error: 生成数据错误: HTTP 错误!状态:400,响应:{“error”:“model not found”} TraceID:00-fbfdc577bab4901dba72e3f6ff8dfbfe-bb92e4d3bee36b53-01]

是在settings.json里进行修改,检查下是不是复制模型名称错误了

{
  "apiKey": "xx",
  "searchApiKey": "xx",
  "selectedAuthType": "oauth-aone",
  "cna": "xxx",
  "hasIdeOnboardingBeenShown": {
    "JetBrains": true
  },
  "modelName": "qwen3-max",
  "disableAutoUpdate": true,
  "theme": "Dracula",
  "mcpServers": {

  },
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "write_file|replace",
        "hooks": [
          {
            "type": "command",
            "command": "bash /Users/geyun/.r2c/scripts/iflow-cli-hook.sh",
            "timeout": 15
          }
        ]
      }
    ]
  },
  "hasViewedAnnualReport": {
    "2025": true
  }
}

尝试了,不行。我的模型id都是直接复制的。帮忙看下是不是哪里配置有问题


关注一下:

我试了不行。>_<

是不是认证方式的问题

2 个赞

已经解决。感谢上面大佬的回答。

成功姿势

/auth 重新认证。执行iflow前 export IFLOW_MODEL_NAME=“your_model_name”

2 个赞

嗯。已经解决了 。重新认证解决的。:folded_hands:

1 个赞

哈哈哈,我本来是觉得直接推荐你命令行开启的,如何刚刚实验了一下

还是刚刚推荐的CLI配置页
能用就行

1 个赞