ymx-yunxin-im
    正在准备搜索索引...

    接口 InitData

    初始化参数

    interface InitData {
        aiChatHelper?: boolean;
        aiSearchAccountId?: string;
        aiTranslateAccountId?: string;
        appKey: string;
        clearUnreadAfterDeleteConversation?: boolean;
        consoleLog?: boolean;
        lbsUrls?: string[];
        linkUrl?: string;
        localConversation?: boolean;
        logLevel?: string;
        pushCertificateName?: string;
    }
    索引

    属性

    aiChatHelper?: boolean

    是否启用 AI 助聊(聊天输入区的「回复灵感」),该能力需在云信控制台开通

    true
    
    aiSearchAccountId?: string

    划词搜索数字人的账号 ID,填写后聊天中选中文字才会出现 AI 搜索入口

    aiTranslateAccountId?: string

    翻译数字人的账号 ID,填写后聊天中才会出现 AI 翻译入口

    appKey: string

    云信控制台应用的 App Key

    clearUnreadAfterDeleteConversation?: boolean

    删除会话时是否同时清除该会话的未读数

    true
    
    consoleLog?: boolean

    是否在控制台输出 SDK 日志

    false
    
    lbsUrls?: string[]

    私有化部署的调度地址,公有云无需填写

    linkUrl?: string

    私有化部署的长连接地址,公有云无需填写

    localConversation?: boolean

    会话列表使用本地会话还是云端会话:本地会话支持离线会话数据,但云端会话专属能力(如会话分组)在本地会话模式下会被 SDK 拒绝(返回 misuse),需要这些能力时请传 false

    true
    
    logLevel?: string

    日志级别:debug、info、warn、error

    info
    
    pushCertificateName?: string

    云信控制台上传的推送证书名称,填写后才会下发厂商离线推送