Giter VIP home page Giter VIP logo

gpt_chathist's Introduction

GPT_ChatHist

Hello ๐Ÿ˜ƒ, thank you for being here! GPT_ChatHist is a small app that allows you to interact with OpenAI's GPT-3.5-turbo through a local web interface. It saves your dialogue history locally, allowing you to continue multiple chat sessions. If you prefer a version without a web interface, check out GPT_ChatHist_no_web.

Why it can be useful

  1. Easily resume your dialogue with ChatGPT.
  2. Access dialogue history to analyze, review, or utilize past conversations for various purposes.
  3. OpenAI does not use data submitted by customers via the API to train or improve models unless you explicitly opt-in to share your data. OpenAI's API Data Usage Policies.

Installation

  1. Clone the repository or download the source code.
  2. Create a virtual environment
python -m venv .venv
  1. Activate the virtual environment:
  • Windows:

    .venv\Scripts\activate.bat
    
  • Linux/Mac:

    source .venv/bin/activate
    
  1. Install the required packages:
pip install -r requirements.txt
  1. Change OPEN_API_KEY in config.yaml to your OpenAI API Key If you do not have an Open AI API key, please follow the Open AI blogpost.

How to use

  1. Activate the virtual environment (if not already active).
  2. Run the app:
python web_chat.py
  1. Open a web browser and navigate to http://127.0.0.1:5000/ to access the app interface. Enter your preferred chat name and start interacting with the AI.

Warnings

Every message you send will contain all previous chat history.

  1. Keep in mind that the model has a token limit (e.g., 4096 tokens for GPT-3). If your conversation exceeds this limit, you will need to truncate or remove some messages from the list to fit within the allowed token count.
  2. If your conversation is very large, it can consume a significant portion of your token limit.

gpt_chathist's People

Contributors

nmar33 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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