#

SUD

LLMAiAddReqData
参数名 必选 类型 说明
room_id string 房间ID
ai_players aiPlayer数组 AI用户信息
is_enter int 机器人加入后是否自动上座位
1:自动上座位
0:不自动上座位
is_ready int 机器人加入后是否自动准备
1:自动准备
0:不自动准备
aiPlayer
参数名 必选 类型 说明
uid string uid
avatar string 头像url
name string 名字
ai_id string 大模型AI模板id,如果为空,系统会随机选择一个ai_id,并与当前uid做对应关系,
下次使用同样的uid进行添加大模型AI机器人,系统会使用上次使用的ai_id
SUD 预置AI角色
请求示例
{
    "event": "llm_ai_add",
    "mg_id": "mg_id_1",
    "app_id": "app_id_1",
    "timestamp": 1657770493152,
    "data": {
        "room_id": "roomId_1",
        "ai_players": [{
            "uid":"uid_1",
            "avatar":"avatar_1",
            "name":"name_1",
            "ai_id": "1"
        }],
        "is_enter": 1,
        "is_ready": 1
    }
}
返回示例
{
    "ret_code": 0,
    "ret_msg": ""
}

results matching ""

    No results matching ""