Coder Social home page Coder Social logo

scfobao / chatgpt-web-new Goto Github PK

View Code? Open in Web Editor NEW

This project forked from niek/chatgpt-web

0.0 0.0 0.0 14.53 MB

ChatGPT web interface using the OpenAI API

Home Page: https://niek.github.io/chatgpt-web/

License: GNU General Public License v3.0

JavaScript 0.51% Python 0.60% Rust 0.10% TypeScript 0.35% HTML 1.21% Dockerfile 0.04% SCSS 5.38% Svelte 91.82%

chatgpt-web-new's Introduction

ChatGPT-web

GitHub Workflow Status JavaScript Style Guide GitHub All Contributors

Screenshot of ChatGPT-web

ChatGPT-web is a simple one-page web interface to the OpenAI ChatGPT API. To use it, you need to register for an OpenAI API key first. All messages are stored in your browser's local storage, so everything is private. You can also close the browser tab and come back later to continue the conversation.

Features

  • Open source: ChatGPT-web is open source (GPL-3.0), so you can host it yourself and make changes as you want.
  • Private: All chats and messages are stored in your browser's local storage, so everything is private.
  • Customizable: You can customize the prompt, the temperature, and other model settings. Multiple models (including GPT-4) are supported.
  • Cheaper: ChatGPT-web uses the commercial OpenAI API, so it's much cheaper than a ChatGPT Plus subscription.
  • Fast: ChatGPT-web is a single-page web app, so it's fast and responsive.
  • Mobile-friendly: ChatGPT-web is mobile-friendly, so you can use it on your phone.
  • Voice input: ChatGPT-web supports voice input, so you can talk to ChatGPT. It will also talk back to you.
  • Pre-selected prompts: ChatGPT-web comes with a list of pre-selected prompts, so you can get started quickly.
  • Export: ChatGPT-web can export chats as a Markdown file, so you can share them with others.
  • Code: ChatGPT-web recognizes and highlights code blocks and allows you to copy them with one click.
  • Desktop app: ChatGPT-web can be bundled as a desktop app, so you can use it outside of the browser.
  • Image generation: ChatGPT-web can generate images using the DALLΒ·E model by using the prompt "show me an image of ...".
  • Streaming: ChatGPT-web can stream the response from the API, so you can see the response as it's being generated.

Development

To run the development server, run

npm ci
npm run dev # or: npm run build

To update the awesome-chatgpt-prompts subtree, run :

git subtree pull --prefix src/awesome-chatgpt-prompts https://github.com/f/awesome-chatgpt-prompts.git main --squash

Use with Docker compose

docker compose up -d

Mocked api

If you don't want to wait for the API to respond, you can use the mocked API instead. To use the mocked API, edit the .env file at root of the project and set the key VITE_API_BASE=http://localhost:5174 in it. Then, run the docker compose up -d command above.

You can customize the mocked API response by sending a message that consists of d followed by a number, it will delay the response the the specified number of seconds. You can customize the length of the response by including l followed by a number, it will return a response with the specified number of sentences. For example, sending the message d2 l10 will result in a 2 seconds delay and 10 sentences response.

Desktop app

You can also use ChatGPT-web as a desktop app. To do so, install Rust first. Then, simply run npm run tauri dev for the development version or npm run tauri build for the production version of the desktop app. The desktop app will be built in the src-tauri/target folder.

Contributors

Michael Tanzer
Michael Tanzer

πŸ€” πŸ’»
Peter
Peter

πŸ€”
Dan Brown
Dan Brown

πŸ€” πŸ’»
littlemoonstones
littlemoonstones

πŸ’» πŸ€”
maxrye1996
maxrye1996

πŸ›
Mikemansour
Mikemansour

πŸ€”
abc91199
abc91199

πŸ€”
fuegovic
fuegovic

πŸ€”
Sixzeroo
Sixzeroo

πŸ’»
terryoy
terryoy

πŸ€” πŸ’»
Yang Lyu
Yang Lyu

πŸ›
ryanhex53
ryanhex53

πŸ’» 🎨
Emil Elgaard
Emil Elgaard

πŸ€” 🎨 πŸ’»
felixschwamm
felixschwamm

πŸ’» πŸ€”
Webifi
Webifi

πŸ’» πŸ€”
Daniel Dengler
Daniel Dengler

πŸ’»
Ashkan
Ashkan

πŸ’»
antopoid
antopoid

πŸ“–
MitchBoss
MitchBoss

πŸ’»

chatgpt-web-new's People

Contributors

webifi avatar niek avatar dependabot[bot] avatar allcontributors[bot] avatar michael-tanzer avatar littlemoonstones avatar ryanhex53 avatar mitchboss avatar terryoy avatar ssddanbrown avatar shivan2418 avatar hvanmegen avatar sixzeroo 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.