Coder Social home page Coder Social logo

feishu-gemini's Introduction

项目名称

飞书机器人与谷歌 gemini-pro 集成应用

接入参考:接入Gemini pro – 将Gemini pro集成到飞书机器人,直接拉满效率 - 掘金 (juejin.cn)

简介

这个项目是一个 Python 应用,旨在实现飞书机器人与谷歌生成型 AI 的集成。用户可以通过飞书客户端向机器人发送消息,机器人则通过该应用访问谷歌 AI 服务,实现智能回复和其他 AI 功能。

安装

克隆这个仓库到你的本地机器上:

git clone [email protected]:Crazy-MT/feishu-gemini.git

安装所需依赖:

pip install -r requirements.txt

配置

创建一个 .env 文件,并填写必要的环境变量:

# .env 文件内容
GOOGLE_API_KEY=google generative ai api key
APP_ID=飞书机器人 app_id
APP_SECRET=飞书机器人 app_secret
ENCRYPT_KEY=飞书机器人事件订阅的 Encrypt Key

使用

运行该命令将会监听 60501 端口,可以将服务器地址作为飞书机器人的事件订阅请求地址。

python3 feishu_gemini.py

feishu-gemini's People

Contributors

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