Giter VIP home page Giter VIP logo

gptflaskbygpt-3.5-turbo's Introduction

ChatGPT Flask App by ChatGPT-3.5-turbo

This is a web application that allows users to chat with GPT-3.5-turbo. This project was designed by Dustin Andrews and mostly written by GPT-3.5-turbo.

example of chat messages

Audience

  • Anyone who wants to expirement with the GPT-3.5-turbo API in Python and Flask
  • Anyone who wants to use thier own gpt-3.5-turbo API Key locally

Features

A simple flask app that will allow you to converse with chatgpt-3.5-turbo.

  • Automatically include up to the last 1024 tokens worth of history
  • Logs your conversations with a unique id
  • Log viewer page

Example of chat

Installation

Requirements

  • Ubuntu 22.04.2 (this version has been tested and confirmed to work)
  • Python 3.8
  • pip

Note: You´ll need an OpenAI API key to use this app. You will require a paid account with OpenAI.

Steps to install

  1. Install Python 3.8 and pip as per your system requirements.

  2. Install the OpenAI library by running:

    pip install openai=0.27.0
    
  3. Clone this repository by running:

    git clone https://github.com/dustinandrews/gptFlaskByGpt-3.5-turbo.git
    
  4. Navigate to the directory of the project:

    cd gptFlaskByGpt-3.5-turbo.git
    
  5. Create a new file named "openai.api_key.txt" and add your OpenAI API key in the file using a text editor of your choice:

    nano openai.api_key.txt
    
  6. Start the app by running the following command:

    flask run
    
  7. Access the application by navigating to the URL displayed in the terminal window on your web browser.

License

This project is licensed under the MIT License

Motivation

I was looking for a simple ChatGpt client I could use with gtp-3.5-turbo. I prefered flask because it's simple to use and run for experimental purposes.

I also wanted to test out chat-gpt. It wrote 90% of the code in response to my questions.

Known Issues

After around 20-30 messages OpenApi will timeout. This seems to be due to the openai library doing something odd. Use the reset button to start over.

Wishlist

  • more useful log viewer, collapse by id, pages, etc.
  • ability to pin messages
  • ability to start over from a logged conversation

gptflaskbygpt-3.5-turbo's People

Contributors

dustinandrews avatar saintd-bungie avatar

Stargazers

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