Skip to content

gpt-open/gptchat

This branch is 38 commits ahead of, 5 commits behind openimsdk/openim-electron-demo:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6e01757 Β· Jun 7, 2024

History

38 Commits
Jul 19, 2023
Jul 19, 2023
Jun 7, 2024
Jul 19, 2023
May 30, 2024
May 30, 2024
Jun 7, 2024
Jun 7, 2024
Jul 19, 2023
Jul 19, 2023
Jul 19, 2023
Apr 22, 2024
Jul 19, 2023
Jul 19, 2023
Oct 10, 2023
Jun 7, 2024
Jun 7, 2024
Jul 19, 2023
May 30, 2024
Jun 6, 2024
Jun 6, 2024
May 30, 2024
Jul 19, 2023
May 30, 2024
Jul 19, 2023
Jul 19, 2023
Jul 19, 2023
May 30, 2024
Jul 19, 2023

Repository files navigation

OpenIM GPT πŸ’¬πŸ’»

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.

Tech Stack πŸ› οΈ

Live Demo 🌐

Give it a try at https://chatbot.open-sora.ai.

Dev Setup πŸ› οΈ

It is recommended to use node version 16.x-20.x.

Follow these steps to set up a local development environment:

  1. Run npm install to install all dependencies.

  2. Copy the .env.example file and rename it to .env.

  3. 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.

    • .env

      VITE_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
  4. Run npm run dev to start the development server. Visit http://localhost:5173 to see the result. An Electron application will be launched by default.

  5. Start development! πŸŽ‰

Build πŸš€

This project allows building web applications and Electron applications separately, but there will be some differences during the build process.

Web Application

  1. Run the following command to build the web application:
    npm run build
  2. The build result will be located in the dist folder.

Electron Application

  1. Replace the contents of the package_electron.json file with package.json, keeping only the dependencies required for Electron to function. This significantly reduces the package size. Also, modify the packaging script.
  2. 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
  3. The build result will be located in the package folder.

About

Instant Messaging web desktop with gpt

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 92.0%
  • JavaScript 5.1%
  • SCSS 2.5%
  • Other 0.4%