Code Monkey home page Code Monkey logo

ailawyer's Introduction

AI律所,专业律师在线答疑。

由《ChatGPT产品商业俱乐部》提供服务,如有疑问或需要交流,联系微信:taifenghulala (台风-GPT魔法师)

这个项目是如何工作的

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

线上一键部署

Vercel 一键部署:

Deploy with Vercel

环境变量如下所示:

OPENAI_API_KEY=xxxxx
NEXT_PUBLIC_USE_USER_KEY = false  

在本地运行

**由于众所周知的原因,OpenAI API 的域名 api.openai.com 已无法在大陆网络环境下访问,请自行解决网络代理问题。

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

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

npm install
npm run dev

打开 http://localhost:3000

Docker 部署

暂未提供

感谢

weekly-report 启发.

ailawyer's People

Contributors

heifengzhai avatar shuzishengming 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.