UNPKG

@lobehub/chat

Version:

Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.

39 lines (37 loc) 955 B
class DebugService { async insertLargeDataToDB() { // await DEBUG_MODEL.createRandomData({ // messageCount: 100_000, // sessionCount: 40, // startIndex: 0, // topicCount: 200, // }); // // console.log('已插入10w'); // // await DEBUG_MODEL.createRandomData({ // messageCount: 300_000, // sessionCount: 40, // startIndex: 100_001, // topicCount: 200, // }); // console.log('已插入40w'); // // await DEBUG_MODEL.createRandomData({ // messageCount: 300_000, // sessionCount: 40, // startIndex: 400_001, // topicCount: 200, // }); // console.log('已插入70w'); // // await DEBUG_MODEL.createRandomData({ // messageCount: 300_000, // sessionCount: 40, // startIndex: 700_001, // topicCount: 200, // }); // console.log('已插入100w'); } } export const debugService = new DebugService();