import { BaseClient } from '../Base'; import { ChatBody, Resp } from '../interface'; declare class ChatCompletion extends BaseClient { /** * chat * @param body 聊天请求体 * @param model 聊天模型,默认为 'ERNIE-Bot-turbo' * @param stream 是否开启流模式,默认为 false * @returns Promise> */ chat(body: ChatBody, model?: string): Promise>; getModels(): Promise; } export default ChatCompletion;