Trả lời trực tiếp

Trang này giải thích cách các đội dùng cổng tương thích OpenAI của NextModel. Point the Charm Crush agent at NextModel via crush.json. Nó bổ sung các bước thực tế, ghi chú cấu hình, và những câu hỏi thường gặp.

Config file

Create ~/.config/crush/crush.json (Windows: %USERPROFILE%\.config\crush\crush.json). The type must be openai-compat and every models[].id must match the catalog exactly.

crush.json
{
  "$schema": "https://charm.land/crush.json",
  "providers": {
    "nextmodel": {
      "type": "openai-compat",
      "base_url": "https://api.nextmodel.app/v1",
      "api_key": "$NEXTMODEL_API_KEY",
      "models": [
        {
          "id": "qwen/qwen3.7-max",
          "name": "Qwen 3.7 Max",
          "context_window": 1000000,
          "can_reason": true
        }
      ]
    }
  }
}

Switch models

Start crush in your project, press Ctrl+L (or /model), pick the NextModel provider, then the model. Send one message to confirm the response.