Git Product home page Git Product logo

weekly_report's Introduction

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

Weekly Report

这个项目是如何工作的

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

在本地运行

由于众所周知的原因,OpenAI API 的域名 api.openai.com 已无法在大陆网络环境下访问,本地调试需要自己想办法。如果你有好的想法欢迎提PR

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

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

npm install
npm run dev

打开 http://localhost:3000

线上一键部署

Vercel 一键部署:

Deploy with Vercel

环境变量如下所示:

OPENAI_API_KEY=xxxxx
NEXT_PUBLIC_USE_USER_KEY = false  

Docker 部署

docker run -d -p 3000:3000 --name weekly_report-docker -e OPENAI_API_KEY=sk-xxxxx ihxrainbow/weekly_report-docker

docker-compose.yml

services:
  weekly_report-docker:
    container_name: weekly_report-docker
    ports:
      - '3000:3000'
    image: ihxrainbow/weekly_report-docker
    environment:
      # API key
      - OPENAI_API_KEY=sk-xxxxx

一些数据

2023-03-06

Weekly Report

2023-04-19

Weekly Report

感谢

TwtterBiochat-simplifier 启发.

weekly_report's People

Contributors

guaguaguaxia avatar ihx-rainbow avatar zkl2333 avatar neday 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.