Git Product home page Git Product logo

feishu-chatbot's Introduction

Feishu Chatbot

feishu-chatbot

私有化部署飞书机器人,和ChatGPT直接聊天

介绍(Intro)

ChatGPT GPT-3 New-Bing等流行的大模型聊天,与未来对话。飞书机器人已经准备好了,现在就来享受与AI技术的畅谈吧!

安装依赖(Deps)

# python 3.6+
pip install -r requirements.txt

配置服务(Deploy)

  • 在飞书开放平台创建应用,打开机器人能力

  • 订阅接收消息 事件,并按需开通权限

  • 复制.env.json.example.env.json,并填写app_id app_secret encryption_key verification_token,这几个字段在你的应用详情页可以找到

  • 启动项目
python3 start_server.py

  • 配置请求地址,格式为http://your_domain:port

  • 如果你使用nginx作为代理,则需要将服务端口映射到本地12121端口
  • 按照如下配置start_server.py
config = uvicorn.Config("process:app", port=12121, log_level="info", host="0.0.0.0")
  • 无论哪种方式,请注意相应的端口号不被防火墙拦截

在飞书上体验(Play)

  • 在飞书中搜索你创建的机器人
  • 给机器人发送!help,查看机器人支持的功能
  • 按照提示使用机器人
  • 如果是自建llmapi server,则配置llmapi_host为你的llmapi server地址,否则默认使用https://api.llmapi.io
  • 如果使用默认llmapi server,可以在https://llmapi.io上注册账号,获取api key,然后在飞书中发送!llmapi_key your_api_key
  • 使用!show命令查看当前配置,这在出错时可以帮助你排查问题
  • 配置完成后,给机器人发消息,机器人会自动回复

反馈(Feedback)

请在issue中反馈问题

致谢(Acknowledgements)

feishu-chatbot's People

Stargazers

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

Watchers

 avatar

feishu-chatbot's Issues

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.