Skip to content

获取高级配置

接入前提

获取调用API所需的TOKEN请参考鉴权

说明

接口描述此接口用于获取高级配置数据。
接口地址/api/ai/chat/senior/option请求方式GET
权限校验

请求示例

ts
curl --location --request GET 'https://co.aippt.cn/api/ai/chat/senior/option' \
--header 'x-api-key: {{apiKey}}' \
--header 'x-channel:' \
--header 'x-token: {{token}}' \

响应内容

响应示例

ts
{
    "code": 0,
    "data": [
        {
            "id": 1,
            "parent_id": 0,
            "name": "页数",
            "key": "page",
            "is_default": 0,
            "is_c": 0,
            "children": [
                {
                    "id": 2,
                    "parent_id": 1,
                    "name": "15 - 20页",
                    "key": "",
                    "is_default": 0,
                    "is_beta": 0,
                    "children": null
                },
                ...更多
            ]
        },
        {
            "id": 5,
            "parent_id": 0,
            "name": "受众",
            "key": "group",
            "is_default": 0,
            "is_beta": 0,
            "children": [
                {
                    "id": 6,
                    "parent_id": 5,
                    "name": "大众",
                    "key": "",
                    "is_default": 1,
                    "is_beta": 0,
                    "children": null
                },
                ...更多
            ]
        },
        {
            "id": 17,
            "parent_id": 0,
            "name": "场景",
            "key": "scene",
            "is_default": 0,
            "is_beta": 0,
            "children": [
                {
                    "id": 18,
                    "parent_id": 17,
                    "name": "通用",
                    "key": "",
                    "is_default": 1,
                    "is_beta": 0,
                    "children": null
                },
                ...更多
            ]
        },
        {
            "id": 39,
            "parent_id": 0,
            "name": "语气",
            "key": "tone",
            "is_default": 0,
            "is_beta": 0,
            "children": [
                {
                    "id": 40,
                    "parent_id": 39,
                    "name": "专业",
                    "key": "",
                    "is_default": 1,
                    "is_beta": 0,
                    "children": null
                },
                ...更多
        },
        {
            "id": 46,
            "parent_id": 0,
            "name": "语言",
            "key": "language",
            "is_default": 0,
            "is_beta": 0,
            "children": [
                {
                    "id": 47,
                    "parent_id": 46,
                    "name": "简体中文",
                    "key": "",
                    "is_default": 0,
                    "is_beta": 0,
                    "children": null
                },
                ...更多
            ]
        }
    ],
    "msg": "ok"
}