Bistard / nota

📕Next-Gen AI-powered markdown note-taking application.
MIT License
59 stars 5 forks source link

Basic `AICoreService` #217

Closed duckSoup0203 closed 8 months ago

duckSoup0203 commented 9 months ago

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