complete(message, onData, signal?, option?): Promise<void>
对话补全
| Name | Type | Default value | Description |
|---|---|---|---|
message | string | undefined | 消息 |
onData | (data: string | ParsedData) => void | undefined | 数据生成时的回调 |
signal | undefined | AbortSignal | undefined | 停止生成的信号 |
option | undefined | CompleteOption | {} | 对话补全配置 |
Promise<void>
返回值