Code Monkey home page Code Monkey logo

sysuwbs / vue3-ts-chatgpt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sumingcheng/vue3-ts-chatgpt

0.0 0.0 0.0 4.27 MB

该项目基于 Vue 3,结合了 Tailwind CSS 为界面设计提供风格化的支持。通过集成 axios 和 openai 库,它能与 ChatGPT 进行高效的交互通讯。此外,我们还利用了 lodash 和 crypto-js 提升数据处理能力,以及借助 highlight.js 和 marked 库来支持代码高亮和 Markdown 的解析。对于数学公式的展示,我们采用了 MathJax。整个应用可部署在 GitHub Pages,支持流式数据处理,使得用户体验更加流畅和直观。

Home Page: https://sumingcheng.github.io/Vue3-TS-ChatGPT/

License: MIT License

JavaScript 2.93% TypeScript 42.69% CSS 14.62% HTML 4.79% Vue 34.98%

vue3-ts-chatgpt's Introduction

Vue3-TS-ChatGPT

  1. Call the OpenAI API and use fetch to handle readable streams.
  2. Associate communication context.
  3. Use marked to solve issues with markdown syntax.
  4. Use highlight.js for syntax highlighting.
  5. Use tailwindcss for styling.
  6. Use CryptoJS for symmetric encryption of the sk (secret key).
  7. Encapsulate the ChatStorageManager class, using indexedDB to cache chat records.

Why is there this project

Because, when you are using OpenAI's official ChatGPT service, much of your information is sent to the server for checks, which helps determine whether you are in an area they can serve, or whether you are using a VPN for proxy, etc. Therefore, directly communicating with OpenAI's interface is the most convenient and efficient method. Hence, this open-source project was created.

run

npm run dev

build

npm run build

The overall page has been optimized

image

image

image

vue3-ts-chatgpt's People

Contributors

nodece avatar sumingcheng 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.