1. 节点控制接口
AIComputingNode
  • 常用查询接口
    • 获取节点自身的 PeerInfo
      GET
    • 获取节点列表
      GET
    • 获取话题的节点列表
      GET
    • 获取节点 PeerInfo
      POST
    • 获取节点机器信息
      POST
  • 模型调用接口
    • 文字聊天
      POST
    • 文字聊天(使用项目名称)
      POST
    • 图片生成
      POST
    • 图片生成(使用项目名称)
      POST
    • 获取 AI 项目列表
      GET
    • 获取 AI 项目的模型列表
      GET
    • 获取运行指定 AI 项目和模型的节点列表
      GET
    • StyleID 图片修改
      POST
    • StyleID 图片修改(使用项目名称)
      POST
  • 模型注册/反注册接口
    • 注册 AI 模型
      POST
    • 反注册 AI 模型
      POST
    • 获取节点注册的 AI 项目列表
      POST
    • 注册 AI 项目
      POST
    • 反注册 AI 项目
      POST
  • 节点控制接口
    • 列出建立连接的对等点
      GET
    • 列出已知的连接地址
      GET
    • 连接指定的节点
      POST
    • 断开指定节点的连接
      POST
    • 列出订阅的节点列表
      GET
    • 列出引导节点
      GET
    • 增加引导节点
      POST
    • 删除引导节点
      POST
  1. 节点控制接口

列出建立连接的对等点

input-singapore
https://singapore-chat.degpt.ai
input-singapore
https://singapore-chat.degpt.ai
GET
/api/v0/swarm/peers
List the peers with which the node has established connections.

请求参数

无

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://singapore-chat.degpt.ai/api/v0/swarm/peers'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
[
    {
        "id": "12D3KooWN7-1",
        "peer": "12D3KooWN7ZYLCxpr6T5FgFfXQDjoQYBT9jEucKq1ziF5dwT5Kzs",
        "addr": "/ip4/10.0.20.43/tcp/7001",
        "latency": "0s",
        "direction": "Outbound"
    },
    {
        "id": "12D3KooWSp-2",
        "peer": "12D3KooWSpgWzEXE5GNjY6hgdAhuuBLe4d3ocqWDnVLdCa8U3cig",
        "addr": "/ip4/122.99.183.54/tcp/6001",
        "latency": "79.582638ms",
        "direction": "Outbound"
    },
    {
        "id": "12D3KooWEJ-4",
        "peer": "12D3KooWEJkLnXJuqiDRunRdes7JHtjr6jw2w2EUPysVMCuv4ZfJ",
        "addr": "/ip4/8.219.75.114/tcp/6001",
        "latency": "192.43212ms",
        "direction": "Outbound"
    }
]
修改于 2024-10-30 08:45:58
上一页
反注册 AI 项目
下一页
列出已知的连接地址
Built with