文档

GetAppConfig - 获取配置信息

更新时间:

获取应用配置信息,包含用户可使用模型列表,嵌入列表等。

接口说明

前提条件

已开通 百炼服务和通义点金服务。

获取到 workspaceId:获取 workspace 标识

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求语法

GET /{workspaceId}/api/app/config

请求参数

名称类型必填描述示例值
workspaceIdstring

路径参数,业务空间 id

llm-xxxxx

返回参数

名称类型描述示例值
object

ResultCode

costlong

耗时

null
dataobject

返回数据

embeddingTypeListarray<object>

embedding 类型列表

object

k-v 对

string

value

DashScope
frontendConfigobject

前端配置

boolean

是否开启

true
libraryDocumentStatusListarray<object>

文档库文档状态列表

object

k-v 对

string

value

Completed
llmHelperTypeListarray<object>

大模型类型列表

object

k-v 对

string

value

qwen-max
textIndexCategoryListarray

文本索引类别列表

string

文本索引类别

ElasticSearch
vectorIndexCategoryListarray

向量索引类别列表

string

向量索引类别

ADB
dataTypestring

数据类型

null
errCodestring

错误码

0
messagestring

错误信息

None
requestIdstring

请求 id

EF4B5C9B-3BC8-5171-A47B-4C5CF3DC3258
successboolean

是否成功

True
timestring

时间戳

2024-04-24 11:54:34

示例

正常返回示例

JSON格式

{
  "cost": 0,
  "data": {
    "embeddingTypeList": [
      {
        "key": "DashScope"
      }
    ],
    "frontendConfig": {
      "key": true
    },
    "libraryDocumentStatusList": [
      {
        "key": "Completed"
      }
    ],
    "llmHelperTypeList": [
      {
        "key": "qwen-max"
      }
    ],
    "textIndexCategoryList": [
      "ElasticSearch"
    ],
    "vectorIndexCategoryList": [
      "ADB"
    ]
  },
  "dataType": "null",
  "errCode": "0",
  "message": "None",
  "requestId": "EF4B5C9B-3BC8-5171-A47B-4C5CF3DC3258",
  "success": true,
  "time": "2024-04-24 11:54:34"
}

错误码

访问错误中心查看更多错误码。