{
  "version": "1.0.0",
  "virtualrouter": {
    "providers": {
      "glm": {
        "id": "glm",
        "enabled": true,
        "type": "openai-standard",
        "baseURL": "https://open.bigmodel.cn/api/coding/paas/v4",
        "auth": {
          "type": "apikey",
          "apiKey": "${GLM_API_KEY}"
        },
        "models": {
          "glm-4.5": {
            "supportsStreaming": true
          },
          "glm-4.5-air": {
            "supportsStreaming": true
          },
          "glm-4.6": {
            "maxTokens": 128000,
            "maxContext": 200000,
            "supportsThinking": true,
            "supportsStreaming": true
          },
          "glm-4.7": {
            "maxTokens": 128000,
            "maxContext": 202752,
            "supportsThinking": true,
            "supportsStreaming": true
          },
          "glm-4.6v": {
            "maxTokens": 128000,
            "maxContext": 200000,
            "supportsStreaming": true
          }
        },
        "compatibilityProfile": "chat:glm"
      }
    },
    "routing": {
      "default": [
        {
          "id": "default-primary",
          "mode": "priority",
          "targets": ["glm.glm-4.7"]
        }
      ],
      "vision": [
        {
          "id": "vision-primary",
          "mode": "priority",
          "targets": ["glm.glm-4.6v"]
        }
      ],
      "web_search": [
        {
          "id": "web_search-primary",
          "mode": "priority",
          "targets": ["glm.glm-4.7"]
        }
      ]
    },
    "webSearch": {
      "engines": [
        {
          "id": "glm",
          "providerKey": "glm.glm-4.7",
          "description": "GLM 4.7 web search backend",
          "default": true
        }
      ],
      "injectPolicy": "selective"
    }
  },
  "httpserver": {
    "host": "127.0.0.1",
    "port": 5520
  }
}
