AI SDK 服务端路由:网页传任务 ID,服务器决定模型

模型实际输出

{
  "category": "consumable"
}

实际机制与操作

{
  "nativeRuntime": true,
  "sdkVersion": "3.37.0",
  "unknownStatus": 400,
  "allowedStatus": 200,
  "stageBoundary": "Actual FastAPI task allowlist invokes actual AI SDK once; no production login test",
  "engine": "ai-sdk",
  "requests": [
    {
      "host": "api.quickrouter.ai",
      "path": "/v1/chat/completions",
      "body": {
        "model": "gemini-2.5-flash-lite",
        "max_tokens": 512,
        "temperature": 0,
        "messages": [
          {
            "role": "system",
            "content": "严格只输出单个JSON对象,不要Markdown代码围栏,不要解释。输入均为原创虚构演示数据。只输出JSON:category字段。输入是设备耗材问题时category为consumable。"
          },
          {
            "role": "user",
            "content": "任务约束(只输出JSON对象,不用代码围栏):\n输入均为原创虚构演示数据。只输出JSON:category字段。输入是设备耗材问题时category为consumable。\n待处理合成材料:\n{\"task_id\": \"classify\", \"text\": \"虚构工单:打印机缺纸,请补纸。\"}"
          }
        ],
        "provider": {
          "sort": "success_rate"
        }
      }
    }
  ],
  "ledger": null,
  "sdk": "ai@7.0.153 / openai-compatible@3.0.78",
  "upstreamRequestId": null
}

QuickRouter 原创合成材料 · 实际本地生成文件预览