LangBot HTTP API
  1. requesters
LangBot HTTP API
  • logs
    • 获取日志
      GET
  • stats
    • 获取基本统计数据
      GET
  • system
    • 获取系统信息
      GET
    • 获取异步任务列表
      GET
    • 获取指定任务的信息
      GET
    • 执行调试代码
      POST
    • 执行热重载
      POST
  • settings
    • 获取已注册的配置管理器列表
      GET
    • 获取配置管理器详细信息
      GET
    • 修改配置管理器内容
      PUT
  • plugins
    • 获取已加载的插件列表
      GET
    • 获取已加载的插件的信息
      GET
    • 获取插件配置
      GET
    • 修改插件配置
      PUT
    • 切换插件启用/禁用状态
      PUT
    • 重新排序(修改优先级)
      PUT
    • 更新插件
      POST
    • 从 GitHub 仓库安装插件
      POST
    • 删除插件
      DELETE
    • 获取插件市场插件列表
      POST
  • user
    • 获取是否已经初始化
    • 创建初始账户
    • 检查账户并签发token
    • 检查并刷新token
  • provider
    • models
      • llm
        • 获取 LLM 模型列表
        • 添加 LLM 模型
        • 获取 LLM 模型详细信息
        • 删除 LLM 模型
        • 修改 LLM 模型信息
        • 临时测试 LLM 模型
        • 测试 LLM 模型
      • embedding
        • 获取嵌入模型列表
        • 添加嵌入模型
        • 获取嵌入模型详细信息
        • 删除嵌入模型
        • 修改嵌入模型信息
        • 临时测试嵌入模型
        • 测试 LLM 模型
    • requesters
      • 获取可用的请求器列表
        GET
      • 获取指定请求器信息
        GET
      • 请求器图标
        GET
  • pipelines
    • chat
      • 发送消息
      • 获取指定session的历史消息
    • 获取流水线配置元数据
    • 获取流水线列表
    • 新建流水线
    • 获取流水线信息
    • 删除流水线
    • 修改流水线信息
  • platform
    • bots
      • 获取机器人列表
      • 获取指定机器人信息
      • 创建机器人
      • 删除机器人
      • 修改机器人配置
      • 拉取机器人事件日志
    • adapters
      • 获取可用的适配器列表
      • 获取指定适配器信息
      • 适配器图标
  • files
    • 下载图片文件
    • 上传文件
  • knowledge
    • bases
      • 获取所有知识库
      • 获取单个知识库信息
      • 创建空知识库
      • 上传并解析文件
      • 获取知识库中的文件列表
      • 删除文件
      • 删除知识库
  1. requesters

获取可用的请求器列表

测试中
GET
/api/v1/provider/requesters

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Query 参数
type
string 
可选
不填则显示所有;筛选支持特定类型模型的请求器(目前支持 llm,后续会有 tts, text-embedding, image-generate, asr 等类型)
示例值:
llm

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v1/provider/requesters?type=llm'

返回响应

🟢200成功
application/json
Body
object {0}
示例
{
    "code": 0,
    "data": {
        "requesters": [
            {
                "description": {
                    "en_US": ""
                },
                "icon": "",
                "label": {
                    "en_US": "OpenAI",
                    "zh_CN": "OpenAI"
                },
                "name": "openai-chat-completions",
                "spec": {
                    "config": [
                        {
                            "default": "https://api.openai.com/v1",
                            "label": {
                                "en_US": "Base URL",
                                "zh_CN": "基础 URL"
                            },
                            "name": "base-url",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": 120,
                            "label": {
                                "en_US": "Timeout",
                                "zh_CN": "超时时间"
                            },
                            "name": "timeout",
                            "required": true,
                            "type": "int"
                        }
                    ]
                }
            },
            {
                "description": {
                    "en_US": ""
                },
                "icon": "",
                "label": {
                    "en_US": "LM Studio",
                    "zh_CN": "LM Studio"
                },
                "name": "lmstudio-chat-completions",
                "spec": {
                    "config": [
                        {
                            "default": "http://127.0.0.1:1234/v1",
                            "label": {
                                "en_US": "Base URL",
                                "zh_CN": "基础 URL"
                            },
                            "name": "base-url",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": 120,
                            "label": {
                                "en_US": "Timeout",
                                "zh_CN": "超时时间"
                            },
                            "name": "timeout",
                            "required": true,
                            "type": "int"
                        }
                    ]
                }
            },
            {
                "description": {
                    "en_US": ""
                },
                "icon": "",
                "label": {
                    "en_US": "Ollama",
                    "zh_CN": "Ollama"
                },
                "name": "ollama-chat",
                "spec": {
                    "config": [
                        {
                            "default": "http://127.0.0.1:11434",
                            "label": {
                                "en_US": "Base URL",
                                "zh_CN": "基础 URL"
                            },
                            "name": "base-url",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": 120,
                            "label": {
                                "en_US": "Timeout",
                                "zh_CN": "超时时间"
                            },
                            "name": "timeout",
                            "required": true,
                            "type": "int"
                        }
                    ]
                }
            },
            {
                "description": {
                    "en_US": ""
                },
                "icon": "",
                "label": {
                    "en_US": "Anthropic",
                    "zh_CN": "Anthropic"
                },
                "name": "anthropic-messages",
                "spec": {
                    "config": [
                        {
                            "default": "https://api.anthropic.com/v1",
                            "label": {
                                "en_US": "Base URL",
                                "zh_CN": "基础 URL"
                            },
                            "name": "base-url",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": 120,
                            "label": {
                                "en_US": "Timeout",
                                "zh_CN": "超时时间"
                            },
                            "name": "timeout",
                            "required": true,
                            "type": "int"
                        }
                    ]
                }
            },
            {
                "description": {
                    "en_US": ""
                },
                "icon": "",
                "label": {
                    "en_US": "Gitee AI",
                    "zh_CN": "Gitee AI"
                },
                "name": "gitee-ai-chat-completions",
                "spec": {
                    "config": [
                        {
                            "default": "https://ai.gitee.com/v1",
                            "label": {
                                "en_US": "Base URL",
                                "zh_CN": "基础 URL"
                            },
                            "name": "base-url",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": 120,
                            "label": {
                                "en_US": "Timeout",
                                "zh_CN": "超时时间"
                            },
                            "name": "timeout",
                            "required": true,
                            "type": "int"
                        }
                    ]
                }
            },
            {
                "description": {
                    "en_US": ""
                },
                "icon": "",
                "label": {
                    "en_US": "Aliyun Bailian",
                    "zh_CN": "阿里云百炼"
                },
                "name": "bailian-chat-completions",
                "spec": {
                    "config": [
                        {
                            "default": "https://dashscope.aliyuncs.com/compatible-mode/v1",
                            "label": {
                                "en_US": "Base URL",
                                "zh_CN": "基础 URL"
                            },
                            "name": "base-url",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": 120,
                            "label": {
                                "en_US": "Timeout",
                                "zh_CN": "超时时间"
                            },
                            "name": "timeout",
                            "required": true,
                            "type": "int"
                        }
                    ]
                }
            },
            {
                "description": {
                    "en_US": ""
                },
                "icon": "",
                "label": {
                    "en_US": "Volc Engine Ark",
                    "zh_CN": "火山方舟"
                },
                "name": "volcark-chat-completions",
                "spec": {
                    "config": [
                        {
                            "default": "https://ark.cn-beijing.volces.com/api/v3",
                            "label": {
                                "en_US": "Base URL",
                                "zh_CN": "基础 URL"
                            },
                            "name": "base-url",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": 120,
                            "label": {
                                "en_US": "Timeout",
                                "zh_CN": "超时时间"
                            },
                            "name": "timeout",
                            "required": true,
                            "type": "int"
                        }
                    ]
                }
            },
            {
                "description": {
                    "en_US": ""
                },
                "icon": "",
                "label": {
                    "en_US": "SiliconFlow",
                    "zh_CN": "硅基流动"
                },
                "name": "siliconflow-chat-completions",
                "spec": {
                    "config": [
                        {
                            "default": "https://api.siliconflow.cn/v1",
                            "label": {
                                "en_US": "Base URL",
                                "zh_CN": "基础 URL"
                            },
                            "name": "base-url",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": 120,
                            "label": {
                                "en_US": "Timeout",
                                "zh_CN": "超时时间"
                            },
                            "name": "timeout",
                            "required": true,
                            "type": "int"
                        }
                    ]
                }
            },
            {
                "description": {
                    "en_US": ""
                },
                "icon": "",
                "label": {
                    "en_US": "DeepSeek",
                    "zh_CN": "深度求索"
                },
                "name": "deepseek-chat-completions",
                "spec": {
                    "config": [
                        {
                            "default": "https://api.deepseek.com",
                            "label": {
                                "en_US": "Base URL",
                                "zh_CN": "基础 URL"
                            },
                            "name": "base-url",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": 120,
                            "label": {
                                "en_US": "Timeout",
                                "zh_CN": "超时时间"
                            },
                            "name": "timeout",
                            "required": true,
                            "type": "int"
                        }
                    ]
                }
            },
            {
                "description": {
                    "en_US": ""
                },
                "icon": "",
                "label": {
                    "en_US": "ZhipuAI",
                    "zh_CN": "智谱 AI"
                },
                "name": "zhipuai-chat-completions",
                "spec": {
                    "config": [
                        {
                            "default": "https://open.bigmodel.cn/api/paas/v4",
                            "label": {
                                "en_US": "Base URL",
                                "zh_CN": "基础 URL"
                            },
                            "name": "base-url",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": 120,
                            "label": {
                                "en_US": "Timeout",
                                "zh_CN": "超时时间"
                            },
                            "name": "timeout",
                            "required": true,
                            "type": "int"
                        }
                    ]
                }
            },
            {
                "description": {
                    "en_US": ""
                },
                "icon": "",
                "label": {
                    "en_US": "Moonshot",
                    "zh_CN": "月之暗面"
                },
                "name": "moonshot-chat-completions",
                "spec": {
                    "config": [
                        {
                            "default": "https://api.moonshot.com/v1",
                            "label": {
                                "en_US": "Base URL",
                                "zh_CN": "基础 URL"
                            },
                            "name": "base-url",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": 120,
                            "label": {
                                "en_US": "Timeout",
                                "zh_CN": "超时时间"
                            },
                            "name": "timeout",
                            "required": true,
                            "type": "int"
                        }
                    ]
                }
            },
            {
                "description": {
                    "en_US": ""
                },
                "icon": "",
                "label": {
                    "en_US": "xAI",
                    "zh_CN": "xAI"
                },
                "name": "xai-chat-completions",
                "spec": {
                    "config": [
                        {
                            "default": "https://api.x.ai/v1",
                            "label": {
                                "en_US": "Base URL",
                                "zh_CN": "基础 URL"
                            },
                            "name": "base-url",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": 120,
                            "label": {
                                "en_US": "Timeout",
                                "zh_CN": "超时时间"
                            },
                            "name": "timeout",
                            "required": true,
                            "type": "int"
                        }
                    ]
                }
            }
        ]
    },
    "msg": "ok"
}
修改于 2025-05-21 03:32:25
上一页
测试 LLM 模型
下一页
获取指定请求器信息
Built with