Giter VIP home page Giter VIP logo

pro-chat's Introduction

ProChat

Components Library for Quickly Building LLM Chat Interfaces.



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

Table of contents

TOC

๐Ÿ“ฆ Installation

Important

This package is ESM only.

To install @ant-design/pro-chat, run the following command:

$ pnpm install @ant-design/pro-chat

This project is based on antd antd-style, so if you have not installed these two dependencies, please install them.

$ pnpm install @ant-design/antd-style // peerDependencies
$ pnpm install @ant-design/antd // peerDependencies

Compile with Next.js

Note

By work correct with Next.js SSR, add transpilePackages: ['@ant-design/pro-chat'] to next.config.js. For example:

const nextConfig = {
  transpilePackages: [
    '@ant-design/pro-chat',
    '@ant-design/pro-editor',
    'react-intersection-observer',
  ],
};

Note

If you are using a new version of NextJs (higher than 14), you no longer need to configure transpilePackages to run in NextJs.


๐Ÿ”จ Usage

import { ProChat } from '@ant-design/pro-chat';

export default () => (
  <ProChat
    request={async (messages) => {
      // Send a request with Message as the parameter
      return Message; // Supports both streaming and non-streaming
    }}
  />
);

โœจ Features

Note

ProChat focuses on quickly setting up a large language model chat dialogue framework. It aims to empower developers to easily create rich, dynamic, and intuitive chat interfaces.

Framework and Solutions for Chat Interface Components:

  • ๐Ÿ”„ Automatic Chat Caching: Maintains conversation continuity without any extra effort, ensuring a smooth user experience.
  • ๐Ÿ’ฌ Streamlined Conversations: Offers the choice between different conversation styles, catering to diverse user preferences.
  • โœ๏ธ Message Editing Features: Provides a suite of editing tools, including request redo, edit combination, and deletion, for precise conversation control.
  • ๐Ÿ“– Auto-rendered Markdown: Delivers a rich text experience that immerses users by transforming Markdown into beautifully formatted messages.
  • ๐ŸŽš๏ธ Programmatic Controls (Ref): Commands the chat flow with precision, allowing developers to create a tailored conversational experience.

Design Evolution / In Progress

  • Customized Dialogue Rendering with Edit Capabilities - issue/21
  • Enhanced Request Parameters - The power to infuse additional parameters into your requests is on the horizon
  • Personalized Error Handling - Craft unique fallbacks and configurations for those unexpected moments
  • Expanded Documentation & Globalization - Access comprehensive guides and international support for a truly borderless experience
  • Atomic Component Design - Anticipate a modular approach to design that promises both simplicity and versatility

๐Ÿ‘€ Showcase

Let's showcase some of ProChat's signature features:

Streamlined Dialogue Content Editor
Engage in Streamlined Conversations that flow as naturally as a river Refine, reshape, and perfect your dialogue with tools that allow for real-time edits.
Integrated Render
Dive into the vivid world of chat with our Built-in Render, a tool designed to bring text to life.

๐Ÿ–ฅ Browser compatibility

Note

edge Edge chrome safari electron_48x48
Edge last 2 versions last 2 versions last 2 versions last 2 versions

โŒจ๏ธ Local Development

You can use Github Codespaces for online development:

Or clone it for local development:

$ git clone https://github.com/ant-design/pro-chat.git
$ cd pro-chat
$ pnpm install
$ pnpm dev

๐Ÿค Contributing

Important

Join our collaborative ecosystem. Your contributions are the heartbeat of our project. Here's how you can be an integral part of our vibrant community:

  • Integrate and Innovate: Incorporate Ant Design Pro, umi, and ProChat into your projects. Your real-world usage and feedback are invaluable to us.
  • Voice Your Insights: Encounter a glitch? Have a query? Your perspectives matter. Share them by submitting issues and help us enhance the user experience.
  • Shape the Future: Have code enhancements or feature ideas? We invite you to propose pull requests and contribute directly to the evolution of our codebase.

Every contribution, big or small, is celebrated. Join us in our mission to refine and elevate the world of open-source enterprise UI components. ๐Ÿ˜ƒ





๐Ÿ›ฃ๏ธ Ecosystem

  • ProComponents - Designed for Enterprise-Level Application, Use Ant Design like a Pro!.
  • ProEditor - The Ultimate Editor UI Framework and Components.
  • ProFlow - A Flow Editor Framework base on React-Flow.
  • ProChat - Components Library for Quickly Building LLM Chat Interfaces.


๐Ÿ“ License

Copyright ยฉ 2023 - present AFX & Ant Digital.
This project is MIT licensed.

pro-chat's People

Contributors

semantic-release-bot avatar arvinxx avatar only-yours avatar chenshuai2144 avatar actions-user avatar rdmclin2 avatar canisminor1990 avatar rain120 avatar scarqin avatar coder-zhuzm avatar jiabochao avatar lkzwc 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.