UNPKG

koishi-plugin-newbingchat

Version:

不需要proxy即可使用的newbing AI,基于NewbingGoGo。

73 lines (72 loc) 2.41 kB
/** * 处理聊天选项的类 * */ export default class ChatOptionsSets { /** * @param sendMessageManager {SendMessageManager} * @param chat {String} 要发送的消息 * */ getSendJson(sendMessageManager: any, chat: any): Promise<{ arguments: { source: string; optionsSets: any; allowedMessageTypes: string[]; sliceIds: string[]; verbosity: string; traceId: string; isStartOfSession: any; message: { locale: string; market: string; region: string; location: string; locationHints: ({ Center: { Latitude: number; Longitude: number; }; RegionType: number; SourceType: number; country?: undefined; state?: undefined; city?: undefined; zipcode?: undefined; timezoneoffset?: undefined; dma?: undefined; countryConfidence?: undefined; } | { country: string; state: string; city: string; zipcode: string; timezoneoffset: number; dma: number; countryConfidence: number; Center: { Latitude: number; Longitude: number; }; RegionType: number; SourceType: number; })[]; timestamp: any; author: string; inputMethod: string; text: any; messageType: string; requestId: `${string}-${string}-${string}-${string}-${string}`; messageId: `${string}-${string}-${string}-${string}-${string}`; }; tone: any; requestId: `${string}-${string}-${string}-${string}-${string}`; conversationSignature: any; participant: { id: any; }; conversationId: any; }[]; invocationId: any; target: string; type: number; }>; }