UNPKG

tmaiplugin

Version:

TrainingMaster AIGC Component

28 lines (27 loc) 752 B
import PluginBase from './aipluginbase'; /** * OpenAI/NLP 的服务提供商 OpenAI,微软,百度文心(待接入),google(待接入) */ export declare const PluginEnum: { readonly FAQ: "faq"; readonly QUESTION: "question"; readonly COMMENT: "comment"; readonly SIMILARITY: "similarity"; readonly SUMMARY: "summary"; }; /** * 插件调用GPT的参数 */ export interface GptInfo { 'provider': string; 'option': any; } export type PluginEnum = typeof PluginEnum[keyof typeof PluginEnum]; /** * 根据类型创建不同的TTS引擎对象 * @param {*} provider * @param {*} apikey * @param {*} setting * @returns */ export declare function createPlugIn(provider: PluginEnum, gptParam: GptInfo): PluginBase | null;