Giter Site home page Giter Site logo

sumingcheng / vue3-ts-chatgpt Goto Github PK

View Code? Open in Web Editor NEW
44.0 3.0 11.0 4.56 MB

The ChatGPT dialogue client utilizes highlight.js and marked for code highlighting and Markdown parsing. It supports MathJax for displaying mathematical formulas. Streamed data and smooth scrolling are employed to enhance the user experience.

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

License: MIT License

HTML 6.70% JavaScript 2.83% Vue 34.97% CSS 14.16% TypeScript 41.34%
chatgpt typescript vite vue3 highlight lodash marked tailwindcss vue-router cryptojs chatbot openai

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

Star History

Star History Chart

The overall page has been optimized

image

image

image

vue3-ts-chatgpt's People

Contributors

nodece avatar sumingcheng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vue3-ts-chatgpt's Issues

Problem Record

  1. 输入框字体增大,去掉加粗
  2. 长文本输入超出问题

在手机上打开,无法返回结果

在电脑端,不管是chrome还是firefox下,都可以正常,切换到手机模式下也正常,但是在真实手机打开就有问题,没有返回结果,卡在那边
const reader = data.getReader()
await readStream(reader)
这两句没有执行,会不会是兼容的问题

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.