Git Product home page Git Product logo

gpt-chat-js's Introduction

gpt-chat-js

TODO

  • add GPT Vision support
  • add GPT Whisper support
  • add GPT Dall-E support
  • add GPT Text-to-speech support
  • add conversation start date

How to start gpt-chat-js

  • react native
npm install # if you have not installed the dependencies
# bun install
npx expo start --web
# bunx expo start --web

What is gpt-chat-js

This application creates the chat interface for users to chat with gpt (gpt-4)

  • the interface consists of a side menu and a chat window

  • when user clicks top left menu icon, the side menu will slide in from the left

    • the side menu will display the list of chat conversations
    • the bottom of side menu display the followings:
      • input field for user to enter the gpt model name
        • default is 'gpt-4o-mini'
      • input field for user to enter system message
      • settings button for user to click to open the settings window
        • user can input the api key in the settings window and click the save button to save the api key
      • version number of the application
  • the chat window will display the chat conversation selected from the side menu

  • the chat conversation is a list of chat messages

  • each chat message contains a text message, and may contain images

    • images are displayed as thumbnails listed at the bottom of the chat message in a wrapped row
    • user can click on the thumbnail to view the full image
  • top navigation bar will display the title of the chat conversation

  • at the right of the top navigation bar, there are action buttons:

    • + button: user can click on this button to start a new chat conversation
    • ... button: user can click on this button to view the menu of the chat conversation
      • Export menu item: user can click on this menu item to export the chat conversation
  • at the bottom of the chat window, there is a text input field for user to type text message

    • user can click on the Attach icon button to add an image to the chat message
      • when image is added, the image will be displayed as a thumbnail at the top of the text input field
      • user can click on the thumbnail to highlight the image
        • user can click on the X icon button to remove the image from the chat message
      • multiple images can be added to a single chat message to be sent
    • user can click on the Send icon button to send the chat message

Deployment pwa to netlify with webpack export

#netlify switch
npm version patch
git push --tags
git push --all

npx expo export:web
# bunx expo export:web
netlify deploy --dir web-build --prod

Useful resources

gpt-chat-js's People

Contributors

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