GithubHelp home page GithubHelp logo

lvwzhen / teach-anything Goto Github PK

View Code? Open in Web Editor NEW
600.0 8.0 95.0 4.01 MB

Teach any questions in seconds (by OpenAI)

Home Page: https://www.teach-anything.com/

JavaScript 1.54% TypeScript 93.80% CSS 4.66%
gpt chatgpt edgefunctions gpt-3 nextjs openai openai-api

teach-anything's Introduction

Teach you anything in seconds use AI.

2023-02-04.22.43.56.mov

Sponsor

MagickPen BetterPrompt OpenL
Talentorg SailboatUI ❤️ Your logo

Language support

English, Simplified Chinese, Traditional Chinese, Japanese, Italian, German, Spanish,French,Dutch ,Korean,Khmer, Hindi

PR welcome

How it works

Inspired by TwtterBio and Danny Richman

Powerd by OpenAI, Next.js, Vercel and Tailwind CSS.

This project uses the OpenAI GPT-3 API (specifically, text-davinci-003) and Vercel Edge functions with streaming. It constructs a prompt based on the form and user input, sends it to the GPT-3 API via a Vercel Edge function, then streams the response back to the application.

Video and blog post coming soon on how to build apps with OpenAI and Vercel Edge functions!

Running Locally

After cloning the repo, go to OpenAI to make an account and put your API key in a file called .env.

Then, run the application in the command line and it will be available at http://localhost:3000.

npm run dev

One-Click Deploy

Deploy the example using Vercel:

Deploy with Vercel

teach-anything's People

Contributors

abhint avatar anoesj avatar clark-cui avatar code-factor avatar kongmoumou avatar liby avatar lvwzhen avatar renbaoshuo avatar wangmengcc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

teach-anything's Issues

Error:Missing evn var from OpenAI

在页面点击“Get the answer”按钮后,有这个错误产生,一般是什么原因?
.env.example文件里面的OPENAI_API_KEY已经填入了,从OpenAI的个人账户里面产生的。

Prompt Idea

I like this app

I entered:

What is the early history of Brazil’s independence from Portugal?

The response for professional option is divided into two sections that don't make a lot of sense for the question.

Try this prompt with your same api settings for openai completion endpoint:

{
Given the following questions write a 3000 token response in three paragraphs at a college level?

What is the early history of Brazil’s independence from Portugal?
}

It'd be cool if I could load my own prompt templates in a json object or something portable

Thanks for sharing this app

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.