Git Product home page Git Product logo

cuttlefish's Introduction

百度墨斗鱼平台

项目介绍

首先通过请求百度墨斗鱼平台的接口来获取问题数据,然后再通过 chatgpt-api 项目所提供的服务实现回答问题。最后把回答的结果以纯文本的形式保存在用户端。

准备工作

获取接口所需要的 cookie

在登录百度墨斗鱼平台后,打开浏览器的开发者工具,找到 Network 选项卡,然后刷新页面。找到 https://cuttlefish.baidu.com/user/interface/getquerypacklist 的请求,点击 Cookies 选项卡,找到 cookie 包括 BDUSSBDUSS_BFESSBAIDUIDBAIDUID_BFESS 以及 AB_SR,并复制其值。最后,把这些值填入项目根目录 .env 文件中。如果没有这个文件,可以自己创建一个。

获取 chatgpt 服务所需要的 OpenAI API key

把 chatgpt 服务所需要的 OpenAI API key 填入项目根目录 .env 文件中,例如 OPENAI_API_KEY=你自己的 API KEY。如果没有这个文件,可以自己创建一个。

安装依赖

$ pnpm install

使用

启动服务

$ pnpm start

License

MIT

cuttlefish's People

Contributors

renovate[bot] 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.