跳转至

获取 LLM 配置



GET /api/v1/llm_cfg/{appid}/get

概述

获取指定 appId 的 LLM 应用详情,用于编辑回填与单项查询

路由参数

参数名 类型 必选 说明
appid string Y LLM 应用的 appId

参数补充说明

接口说明

根据路径参数 appid 获取单个 LLM 应用详情。

返回说明

  1. 返回完整配置对象
  2. clientToken 返回的是实际 token 字符串,不是内部 token UUID
  3. ifTokenExpired=true 表示当前绑定 token 已失效或已被删除

常见用途

  1. 编辑前读取原始配置
  2. 外部系统按 appId 查询单个应用
  3. 检查某个应用当前绑定 token 是否仍然可用

错误语义

  1. appid 不存在,通常返回 ft.NotFoundLlmSetft.InvalidLlmAppuuid

请求例子

curl 'https://openapi.guance.com/api/v1/llm_cfg/llm_app_demo/get' \
  -H 'Content-Type: application/json' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  --compressed

响应

{
    "code": 200,
    "content": {
        "appId": "llm_app_demo",
        "createAt": 1690813059,
        "creator": "acnt_xxxx32",
        "deleteAt": -1,
        "id": 1,
        "jsonContent": {
            "name": "Langfuse Prod",
            "type": "Langfuse",
            "site": "https://cloud.langfuse.com",
            "extend": {
                "service": "prod"
            }
        },
        "status": 0,
        "updateAt": 1690813059,
        "updator": "acnt_xxxx32",
        "uuid": "llm_app_demo",
        "workspaceUUID": "wksp_xxxx32",
        "clientToken": "token_xxx",
        "ifTokenExpired": false
    },
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "TRACE-68EEEB4A-9ABC-4DDB-A72B-40F07F2699A5"
} 

文档评价

文档内容是否对您有帮助? ×