GithubHelp home page GithubHelp logo

longhairedsi / gpt-base Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joshsanger/gpt-base

0.0 0.0 0.0 298 KB

Home Page: https://gpt-base.vercel.app

JavaScript 9.37% TypeScript 86.52% CSS 4.11%

gpt-base's Introduction

GPT-3.5-turbo base template

This repo's purpose is to be a starting point for contextual based chat interactions with Open Ai's gpt-3.5-turbo API.

It is meant to be forked, cloned, and copied so folks can play around with the API. Please customize the styling, break things, and most of all, have fun!

Check out the step by step guide

final_cropped_image

Getting started

  1. Clone or fork the repo
  2. Run npm i
  3. Create an .env file in root and add your Open AI API key to it (this file is not tracked)
OPENAI_API_KEY=superSecretAPIKey
  1. Run npm run dev
  2. Open in your browser http://localhost:3000/
  3. Start playing with the context you wish to add in /app/context/index.ts

Under the hood

This is build using Remix (a react based framework), Typescript, and uses Tailwind for CSS. Some key notes:

  • Pages can be found under /app/routes
  • Styling can be found in /app/stylesheets and can be added in the /app/root.tsx file in the links() function
  • Context for the chat interaction should be stored in /app/context/index.ts and should follow the data format for messages (role, content)

Deployment

This repo was set up to deploy to Vercel as the main deplopyment source but you can customize it if you wish to suit your needs.

Feedback

Would love to hear some feedback. Please feel free to open issues or hit me up on Twitter.

gpt-base's People

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.