Code Monkey home page Code Monkey logo

syazvinski / chatgpt-minimal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from blrchen/chatgpt-minimal

0.0 0.0 0.0 1.39 MB

Lightweight chatgpt bot built using Next.js and the OpenAI Streaming API. 一个使用 Next.js 和 OpenAI Streaming API 创建的简易ChatGPT聊天机器人

Home Page: https://chatgpt-minimal.vercel.app

License: MIT License

JavaScript 8.66% TypeScript 55.15% CSS 1.28% Dockerfile 3.60% Less 14.47% Python 13.47% HTML 3.36%

chatgpt-minimal's Introduction

Build Buddy Project

This project has been forked from the frontend of chatgpt-minimal, and the instructions for how to use the frontend can be found on the original repository.

Project Overview

This project is a messily built bot which serves as an improvised store assistance. A backend API through Flask takes in a list of products and returns an image of the store.

Each conversation is logged and stored using an SQL Alchemy database. Whenever a user sends a message, the chat log is saved. Included in this, is a functionality that allows the GPT API to pretend to be Build Bot and generate fake data.

In a bit unorthodox method, the bot gives JSON to users once they confirm their list. This communication is prefixed with "FINAL_PRODUCT_DATA" and concludes with "END_PRODUCT_DATA". The frontend listens for these phrases in each response, and once both these phrases are received, assumes that whatever lies between these tags is JSON. This data is then sent in plain text to the API for further parsing.

This project is very much a quick-fix system and for a more professional setup, it is recommended to utilise "Functions" provided by the GPT API for intelligent API calls.

Future Updates

In due course, the GPT API will receive a multimodal update which will enable GPT to handle image processing. An Open AI API key is needed for this functionality to be used.

Additional Information

The API has an endpoint (/analytics). This endpoint delivers an HTML page that displays all the conversations logged through the database.

Disclaimer

Remember, I jerry-rigged this whole system together in three days, so my main focus was not on a proper implementation. Hopefully, this gives you a good idea of what was done and points you in the right direction should you want to set this up as a corporate-level system. The documentation and resources are out there to help make the implementation process a lot cleaner and professional.

chatgpt-minimal's People

Contributors

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