LobeChat Plugins
    LobeChat Plugins
    • 官方插件
      • 天气插件(RealTime Weather)
        • 查询天气
      • 网页抓取插件
        • 网页抓取
      • 维基百科
        • 搜索
        • 网关
      • 搜索引擎
        • 搜索引擎
    • 插件网关
      POST
    • 插件网关(不支持的请求类型)
      GET

      插件网关

      正式环境
      正式环境
      POST
      https://chat-plugins-gateway.lobehub.com
      /api/v1/node
      与 LobeChat 插件进行通信的接口。本接口描述了如何使用 LobeChat 插件网关 API 来发送请求和获取响应。

      请求参数

      Body 参数application/json
      name
      string 
      必需
      arguments
      string 
      必需
      indexUrl
      string 
      可选
      示例
      {
        "name": "realtimeWeather",
        "arguments": "{\n  \"city\": \"杭州\"\n}"
      }

      示例代码

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST 'https://chat-plugins-gateway.lobehub.com/api/v1/node' \
      --header 'Content-Type: application/json' \
      --data-raw '{
        "name": "realtimeWeather",
          "arguments": "{\n  \"city\": \"杭州\"\n}"
      
      }'

      返回响应

      🟢200调用成功
      text/plain
      Body
      object {0}
      示例
      [
        {
          "city": "杭州市",
          "adcode": "330100",
          "province": "浙江",
          "reporttime": "2023-08-17 23:32:22",
          "casts": [
            {
              "date": "2023-08-17",
              "week": "4",
              "dayweather": "小雨",
              "nightweather": "小雨",
              "daytemp": "33",
              "nighttemp": "24",
              "daywind": "东",
              "nightwind": "东",
              "daypower": "≤3",
              "nightpower": "≤3",
              "daytemp_float": "33.0",
              "nighttemp_float": "24.0"
            },
            {
              "date": "2023-08-18",
              "week": "5",
              "dayweather": "小雨",
              "nightweather": "小雨",
              "daytemp": "32",
              "nighttemp": "23",
              "daywind": "东北",
              "nightwind": "东北",
              "daypower": "4",
              "nightpower": "4",
              "daytemp_float": "32.0",
              "nighttemp_float": "23.0"
            },
            {
              "date": "2023-08-19",
              "week": "6",
              "dayweather": "小雨",
              "nightweather": "雷阵雨",
              "daytemp": "32",
              "nighttemp": "24",
              "daywind": "东",
              "nightwind": "东",
              "daypower": "4",
              "nightpower": "4",
              "daytemp_float": "32.0",
              "nighttemp_float": "24.0"
            },
            {
              "date": "2023-08-20",
              "week": "7",
              "dayweather": "雷阵雨",
              "nightweather": "多云",
              "daytemp": "33",
              "nighttemp": "25",
              "daywind": "东",
              "nightwind": "东",
              "daypower": "≤3",
              "nightpower": "≤3",
              "daytemp_float": "33.0",
              "nighttemp_float": "25.0"
            }
          ]
        }
      ]
      🔴590插件市场索引错误
      🟠400请求入参有误
      🟠404插件信息不存在
      🟠490插件元数据错误
      🟠404插件描述文件不存在
      🟠491插件描述文件校验失败
      🟠422插件部分参数错误
      修改于 2024-01-14 12:53:52
      上一页
      搜索引擎
      下一页
      插件网关(不支持的请求类型)
      Built with