open-index/open-npm huggingface dataset:
npm package: @flyingfly/chat-box
Description: ```js <ChatBox     onStart={onStart}     onError={(type, error) => {         console.debug(type, error);     }} /> ```
Latest version: 0.0.85

# 使用方法

```js
<ChatBox
    onStart={onStart}
    onError={(type, error) => {
        console.debug(type, error);
    }}
/>
```

```js
const onStart = async (ref: ChatBoxImperativeHandle) => {
        await ref?.startCall({
            mode: 'video',
            config: {
                appId: 'xxxxxx',
                conversationId: 'xxxxxx',
                appKey: 'xxxxxx',
                userId: 'xxxx',
                platform: 'prevshow.guiji.ai'
            }
        });
    };
```