Giter Site home page Giter Site logo

mylxsw / lobe-chat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lobehub/lobe-chat

0.0 1.0 0.0 28.85 MB

๐Ÿค– Lobe Chat - an open-source, vision supported, extensible, high-performance chat client. It supports one-click free deployment of your private ChatGPT/LLM web application.

Home Page: https://chat-preview.lobehub.com

License: MIT License

Shell 0.03% JavaScript 0.54% TypeScript 99.25% Dockerfile 0.18%

lobe-chat's Introduction

Lobe Chat

LobeChat is an open-source, extensible (Function Calling) high-performance chatbot framework.
It supports one-click free deployment of your private ChatGPT/LLM web application.

English ยท ็ฎ€ไฝ“ไธญๆ–‡ ยท Changelog ยท Wiki ยท Report Bug ยท Request Feature



Share LobeChat Repository

Pioneering the new age of thinking and creating. Built for you, the Super Individual.

Table of contents

TOC


๐Ÿ‘‹๐Ÿป Getting Started & Join Our Community

Please be aware that LobeChat is currently under active development, and feedback is welcome for any issues encountered.

No installation or registration necessary! Visit our website to experience it firsthand.
Join our Discord community! This is where you can connect with developers and other enthusiastic users of LobeHub.

Important
Star Us, You will receive all release notifications from GitHub without any delay ~ โญ๏ธ

Star History

โœจ Features

  • ๐Ÿ’Ž Exquisite UI Design: With a carefully designed interface, it offers an elegant appearance and smooth interaction. It supports light and dark themes and is mobile-friendly. PWA support provides a more native-like experience.
  • ๐Ÿ—ฃ๏ธ Smooth Conversation Experience: Fluid responses ensure a smooth conversation experience. It fully supports Markdown rendering, including code highlighting, LaTex formulas, Mermaid flowcharts, and more.
  • ๐Ÿค– Customizable Agent Roles: Users can create, share, and debug personalized dialogue agent roles according to their needs, providing more flexible and customized dialogue functions.
  • ๐Ÿงฉ Plugin Support & Custom Plugin Development: Conversations are extendable with plugins. Users can install and use various plugins, such as search engines, web extraction, etc. It also supports the development of custom plugins to meet custom needs.
  • ๐Ÿฌ Agent Market: A Agent Market is provided where users can select their preferred dialogue agent roles, enriching the content and style of the dialogue.
  • ๐Ÿ‘๏ธ Visual Recognition: With the integration of visual recognition capabilities, your agent can now analyze and understand images provided during the conversation. This allows for more interactive and context-aware conversations, enabling the dialogue agent to provide relevant and accurate responses based on visual content.
  • ๏ผˆWIP๏ผ‰๐Ÿ“ข Text-to-Speech (TTS) Conversation: LobeChat are supporting Text-to-Speech technology, allowing users to have voice-based conversations with the dialogue agent. This feature enhances the user experience by providing a more natural and immersive conversation environment. Users can choose from a variety of voices and adjust the speech rate to suit their preferences.

Note
You can find our upcoming Roadmap plans in the Projects section.


Beside these features, LobeChat also have much better basic technique underground:

  • ๐Ÿ’จ Quick Deployment: Using the Vercel platform or docker image, you can deploy with just one click and complete the process within 1 minute without any complex configuration.
  • ๐ŸŒ Custom Domain: If users have their own domain, they can bind it to the platform for quick access to the dialogue agent from anywhere.
  • ๐Ÿ”’ Privacy Protection: All data is stored locally in the user's browser, ensuring user privacy.

๐Ÿ“ธ Snapshot

1 Function Calling Plugin System

By establishing a versatile plugin system, ChatGPT becomes capable of delivering real-time news updates and enhancing your ability to interact with documents and e-commerce data more effectively. This extended functionality positions ChatGPT as a valuable resource across diverse domains. If you have an interest in creating plugins, we offer comprehensive component development documentation, software development kits (SDKs), and pre-made templates in the ๐Ÿงฉ Plugin System section below. Join us in our collective efforts to empower ChatGPT, making it both more potent and user-friendly.


2 Prompt Agent Market

In our agent market. We have accumulated a large number of practical, prompt agents that have been used in daily work and study. You can also share your agents here and iterate and optimize your prompt agents with more people. You can submit your agents through ๐Ÿค–/๐Ÿช Submit Agents, and our automated i18n workflow will automatically translate your agents into multiple languages, allowing users worldwide to enjoy your wisdom.

Recent Submits Description
Translation Assistant
By tcmonster on 2023-11-14
Expert in Chinese-English translation, pursuing accurate and elegant translations
translation chinese english
Research Article Translation Assistant
By aihoom on 2023-11-14
An assistant that helps you translate scientific articles
research translation
Academic Writing Enhancement Bot
By Ruler27 on 2023-11-11
Academic English spelling and rhetoric refinement.
proofreading rhetoric academic research english editing
LobeChat Technical Documentation Expert
By arvinxx on 2023-11-05
LobeChat is an AI conversation application built with the Next.js framework. I will help you write the development documentation for LobeChat.
development-documentation technical-introduction next-js react lobe-chat

๐Ÿ“Š Total agents: 41


3 Progress Web App

Utilize the Progressive Web Application (PWA) technology to achieve a seamless LobeChat experience on your computer or mobile device.

Note
If you are unfamiliar with the installation process of PWA, you can add LobeChat as your desktop application (also applicable to mobile devices) by following these steps:

  • Launch the Chrome or Edge browser on your computer.
  • Visit the LobeChat webpage.
  • In the upper right corner of the address bar, click on the Install icon.
  • Follow the instructions on the screen to complete the PWA Installation.

4 Theme Mode Selection

LobeChat offers two unique theme modes - Light Mode and Dark Mode, as well as rich color customization options to meet your personalized needs. By default, our themes will intelligently switch based on your system settings, but if you prefer manual control, you can easily switch in the settings.

5 Mobile Device Adaptation

We have carried out a series of optimization designs for mobile devices to enhance the user's mobile experience. Currently, we are iterating on the mobile user experience to achieve smoother and more intuitive interactions. If you have any suggestions or ideas, we welcome you to provide feedback through GitHub Issues or Pull Requests.

๐Ÿšง Additional snapshots and demonstrations are being progressively added...

โšก๏ธ Performance

Note
The complete list of reports can be found in the ๐Ÿ“˜ Lighthouse Reports

Desktop Mobile
๐Ÿ“‘ Lighthouse Report ๐Ÿ“‘ Lighthouse Report

๐Ÿ›ณ Self Hosting

LobeChat provides Self-Hosted Version with Vercel and Docker Image. This allows you to deploy your own chatbot within a few minutes without any prior knowledge.

A Deploying with Vercel

If you want to deploy this service yourself on Vercel, you can follow these steps:

  • Prepare your OpenAI API Key.
  • Click the button below to start deployment: Deploy with Vercel. Log in directly with your GitHub account, and remember to fill in the OPENAI_API_KEY(required) and ACCESS_CODE (recommended) on the environment variable section.
  • After deployment, you can start using it.
  • Bind a custom domain (optional): The DNS of the domain assigned by Vercel is polluted in some areas; binding a custom domain can connect directly.

Keep Updated

If you have deployed your own project following the one-click deployment steps in the README, you might encounter constant prompts indicating "updates available." This is because Vercel defaults to creating a new project instead of forking this one, resulting in an inability to detect updates accurately.

Important
We suggest you redeploy using the following steps, ๐Ÿ“˜ Maintaining Updates with LobeChat Self-Deployment.


B Deploying with Docker

We provide a Docker image for deploying the LobeChat service on your own private device. Use the following command to start the LobeChat service:

$ docker run -d -p 3210:3210 \
  -e OPENAI_API_KEY=sk-xxxx \
  -e ACCESS_CODE=lobe66 \
  lobehub/lobe-chat

Note
If you need to use the OpenAI service through a proxy, you can configure the proxy address using the OPENAI_PROXY_URL environment variable:

$ docker run -d -p 3210:3210 \
  -e OPENAI_API_KEY=sk-xxxx \
  -e OPENAI_PROXY_URL=https://api-proxy.com/v1 \
  -e ACCESS_CODE=lobe66 \
  lobehub/lobe-chat

Note
For detailed instructions on deploying with Docker, please refer to the ๐Ÿ“˜ Docker Deployment Guide


Environment Variable

This project provides some additional configuration items set with environment variables:

Environment Variable Required Description Example
OPENAI_API_KEY Yes This is the API key you apply on the OpenAI account page sk-xxxxxx...xxxxxx
OPENAI_PROXY_URL No If you manually configure the OpenAI interface proxy, you can use this configuration item to override the default OpenAI API request base URL https://api.chatanywhere.cn/v1
The default value is
https://api.openai.com/v1
ACCESS_CODE No Add a password to access this service; the password should be a 6-digit number or letter awCT74 or e3@09!

Note
The complete list of environment variables can be found in the ๐Ÿ“˜ Environment Variables

๐Ÿ“ฆ Ecosystem

NPM Repository Description Version
@lobehub/ui lobehub/lobe-ui Lobe UI is an open-source UI component library dedicated to building AIGC web applications.
@lobehub/lint lobehub/lobe-lint LobeLint provides configurations for ESlint, Stylelint, Commitlint, Prettier, Remark, and Semantic Release for LobeHub.
@lobehub/assets lobehub/assets Logo assets, favicons, webfonts for LobeHub.

๐Ÿงฉ Plugins

Plugins provide a means to extend the Function Calling capabilities of LobeChat. They can be used to introduce new function calls and even new ways to render message results. If you are interested in plugin development, please refer to our ๐Ÿ“˜ Plugin Development Guide in the Wiki.

  • lobe-chat-plugins: This is the plugin index for LobeChat. It accesses index.json from this repository to display a list of available plugins for LobeChat to the user.
  • chat-plugin-template: This is the plugin template for LobeChat plugin development.
  • @lobehub/chat-plugin-sdk: The LobeChat Plugin SDK assists you in creating exceptional chat plugins for Lobe Chat.
  • @lobehub/chat-plugins-gateway: The LobeChat Plugins Gateway is a backend service that provides a gateway for LobeChat plugins. We deploy this service using Vercel. The primary API POST /api/v1/runner is deployed as an Edge Function.

Note
The plugin system is currently undergoing major development. You can learn more in the following issues:

  • Plugin Phase 1: Implement separation of the plugin from the main body, split the plugin into an independent repository for maintenance, and realize dynamic loading of the plugin.
  • Plugin Phase 2: The security and stability of the plugin's use, more accurately presenting abnormal states, the maintainability of the plugin architecture, and developer-friendly.
  • Plugin Phase 3: Higher-level and more comprehensive customization capabilities, support for plugin authentication, and examples.
Official Plugin Repository Description
Clock Time
By LobeHub on 2023-11-01
lobehub/chat-plugin-clock-time Display a clock to show current time
clock time
Website Crawler
By LobeHub on 2023-08-17
lobehub/chat-plugin-web-crawler Extract content from web links
web content-crawler
Search Engine
By LobeHub on 2023-08-15
lobehub/chat-plugin-search-engine Query search engine to get information
web search
Realtime Weather
By LobeHub on 2023-08-12
lobehub/chat-plugin-realtime-weather Get realtime weather information
weather realtime

๐Ÿ“Š Total plugins: 4

โŒจ๏ธ Local Development

You can use GitHub Codespaces for online development:

Or clone it for local development:

$ git clone https://github.com/lobehub/lobe-chat.git
$ cd lobe-chat
$ bun install
$ bun dev

๐Ÿค Contributing

Contributions of all types are more than welcome; if you are interested in contributing code, feel free to check out our GitHub Issues and Projects to get stuck in to show us what youโ€™re made of.

๐Ÿ”— More Products

  • ๐Ÿคฏ Lobe Theme: The modern theme for Stable Diffusion WebUI, exquisite interface design, highly customizable UI, and efficiency-boosting features.
  • ๐ŸŒ Lobe i18n : Lobe i18n is an automation tool for the i18n (internationalization) translation process, powered by ChatGPT. It supports features such as automatic splitting of large files, incremental updates, and customization options for the OpenAI model, API proxy, and temperature.
  • ๐Ÿ’Œ Lobe Commit: Lobe Commit is a CLI tool that leverages Langchain/ChatGPT to generate Gitmoji-based commit messages.


๐Ÿ“ License

Copyright ยฉ 2023 LobeHub.
This project is MIT licensed.

lobe-chat's People

Contributors

0armaan025 avatar actions-user avatar alienishi avatar arvinxx avatar asuka109 avatar bropines avatar canghai118 avatar canisminor1990 avatar dependabot[bot] avatar eltociear avatar himanshumahto avatar hkabig avatar kushal34712 avatar lavishsheth avatar lobehubbot avatar martialbe avatar mohitd404 avatar peterdavehello avatar renovate[bot] avatar semantic-release-bot avatar shivam250702 avatar shraddha761 avatar suravshresth avatar vectorzhao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.