Giter Site home page Giter Site logo

weekly_report's Introduction

简单描述工作内容,帮你生成完整周报

Weekly Report

这个项目是如何工作的

这个项目主要使用了 OpenAI GPT-3 APIVercel Edge functions。它根据用户输入构建一个Prompt,通过Vercel Edge函数将其发送到GPT-3 API,然后将响应流传回应用程序。

在本地运行

clone此repo,去 OpenAI 注册一个账号,拿到API key,放到.env文件。本地文件.env.example要改成.env

此commit下恢复我下线网站前的代码

确保你本地的npm命令生效,执行以下命令

npm install
npm run dev

打开 http://localhost:3000

线上一键部署

Vercel 一键部署:

Deploy with Vercel

此commit下恢复我下线网站前的代码

环境变量如下所示:

OPENAI_API_KEY=xxxxx
NEXT_PUBLIC_USE_USER_KEY = false  
OPENAI_MODEL = text-davinci-003

感谢

TwtterBiozhengbangbo 启发.

weekly_report's People

Contributors

guaguaguaxia avatar zkl2333 avatar neday avatar

Stargazers

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