OpenIM Docs • openim server • chatbot-gpt • openim-sdk-wasm • openim-sdk-electron • openim-sdk-core
OpenIM GPT is an open-source instant messaging (IM) application designed to facilitate real-time communication and collaboration. It offers a robust and scalable platform that supports various messaging functionalities. In addition to standard IM features, OpenIM GPT integrates some powerful chatbots, enhancing the user experience with automated and intelligent responses.
- This is a Electronproject bootstrapped withVite.
- App is built with openim-sdk-wasm and openim-sdk-electron library.
Give it a try at https://chatbot.open-sora.ai.
It is recommended to use node version 16.x-20.x.
Follow these steps to set up a local development environment:
- 
Run npm installto install all dependencies.
- 
Copy the .env.examplefile and rename it to.env.
- 
Modify the request address to your own OpenIM Server IP in the following files: Note: You need to deploy OpenIM Server and chatbot-gpt first, the default port of OpenIM Server is 10001, 10002, 10008, chatbot-gpt is 9000. - 
.envVITE_BASE_HOST=your-server-ip VITE_WS_URL=ws://$VITE_BASE_HOST:10001 VITE_API_URL=http://$VITE_BASE_HOST:10002 VITE_CHAT_URL=http://$VITE_BASE_HOST:10008 VITE_AGENT_URL=http://$VITE_BASE_HOST:9000 
 
- 
- 
Run npm run devto start the development server. Visit http://localhost:5173 to see the result. An Electron application will be launched by default.
- 
Start development! 🎉 
This project allows building web applications and Electron applications separately, but there will be some differences during the build process.
- Run the following command to build the web application:
npm run build 
- The build result will be located in the distfolder.
- Replace the contents of the package_electron.jsonfile withpackage.json, keeping only the dependencies required for Electron to function. This significantly reduces the package size. Also, modify the packaging script.
- Run one of the following commands to build the Electron application:
- macOS:
npm run build:mac 
- Windows:
npm run build:win 
- Linux:
npm run build:linux 
 
- macOS:
- The build result will be located in the packagefolder.
