Implement AiCoreService class, this class provides basic functions like sendRequest to AI APIs. The feature functions like summarizing will be implemented in another class named AiAssistantSerivce, which relies on the basic functions provided by AiCoreService class.
AiCoreService is implemented inside the main process of Electron, requiring IPC for communication with the render process.
AiCoreService adapts multiple models, I will only implement gpt model for now, but new models can be easily added due to the service's extensibility.
Implement AiCoreService class, this class provides basic functions like sendRequest to AI APIs. The feature functions like summarizing will be implemented in another class named AiAssistantSerivce, which relies on the basic functions provided by AiCoreService class.
AiCoreService is implemented inside the main process of Electron, requiring IPC for communication with the render process.
AiCoreService adapts multiple models, I will only implement gpt model for now, but new models can be easily added due to the service's extensibility.
Detailed documentation of gpt models can be found here: https://platform.openai.com/docs/guides/text-generation