{"id":30029474,"url":"https://github.com/llmapi-io/feishu-chatbot","last_synced_at":"2025-10-03T22:57:53.666Z","repository":{"id":306538474,"uuid":"617065350","full_name":"llmapi-io/feishu-chatbot","owner":"llmapi-io","description":":point_right: 部署飞书机器人，和ChatGPT等流行的大模型聊天","archived":false,"fork":false,"pushed_at":"2023-04-01T02:45:30.000Z","size":1430,"stargazers_count":20,"open_issues_count":2,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-06T17:54:18.776Z","etag":null,"topics":["chatgpt","feishu-bot","large-language-models","lark-bot","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/llmapi-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-03-21T16:23:24.000Z","updated_at":"2024-12-22T03:50:48.000Z","dependencies_parsed_at":"2025-07-26T10:52:50.769Z","dependency_job_id":"c84aef90-40eb-4c79-843e-2d042cef6396","html_url":"https://github.com/llmapi-io/feishu-chatbot","commit_stats":null,"previous_names":["llmapi-io/feishu-chatbot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/llmapi-io/feishu-chatbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llmapi-io%2Ffeishu-chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llmapi-io%2Ffeishu-chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llmapi-io%2Ffeishu-chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llmapi-io%2Ffeishu-chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/llmapi-io","download_url":"https://codeload.github.com/llmapi-io/feishu-chatbot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llmapi-io%2Ffeishu-chatbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278239968,"owners_count":25954097,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-03T02:00:06.070Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatgpt","feishu-bot","large-language-models","lark-bot","python"],"created_at":"2025-08-06T17:31:57.386Z","updated_at":"2025-10-03T22:57:53.636Z","avatar_url":"https://github.com/llmapi-io.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"180\" src=\"https://avatars.githubusercontent.com/u/127706964?s=200\u0026v=4\" alt=\"Feishu Chatbot\"\u003e\n  \u003ch1 align=\"center\"\u003efeishu-chatbot\u003c/h1\u003e\n  \u003cp align=\"center\"\u003e私有化部署飞书机器人，和ChatGPT直接聊天\u003c/p\u003e\n\u003c/p\u003e\n\n## 介绍(Intro)\n与`ChatGPT` `GPT-3` `New-Bing`等流行的大模型聊天，与未来对话。飞书机器人已经准备好了，现在就来享受与AI技术的畅谈吧！\n\n## 安装依赖(Deps)\n\n```bash\n# python 3.6+\npip install -r requirements.txt\n```\n\n## 配置服务(Deploy)\n- 在飞书开放平台创建应用，打开```机器人```能力\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"imgs/add_bot.png\"\u003e\n\u003c/p\u003e\n\n- 订阅```接收消息``` 事件，并按需开通权限\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"imgs/sub.png\"\u003e\n\u003c/p\u003e\n\n- 复制`.env.json.example`为`.env.json`，并填写```app_id``` ```app_secret``` ```encryption_key``` ```verification_token```，这几个字段在你的应用详情页可以找到\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"imgs/appid_secret.png\"\u003e\n  \u003cimg src=\"imgs/encrypt_key_verification_token.png\"\u003e\n\u003c/p\u003e\n\n- 启动项目\n```bash\npython3 start_server.py\n```\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"imgs/start_server.png\"\u003e\n\u003c/p\u003e\n\n- 配置```请求地址```,格式为```http://your_domain:port```\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"imgs/configure_url.png\"\u003e\n\u003c/p\u003e\n\n- 如果你使用nginx作为代理，则需要将服务端口映射到本地12121端口\n- 按照如下配置```start_server.py```\n```python\nconfig = uvicorn.Config(\"process:app\", port=12121, log_level=\"info\", host=\"0.0.0.0\")\n```\n- 无论哪种方式，请注意相应的端口号不被防火墙拦截\n\n## 在飞书上体验(Play)\n\n- 在飞书中搜索你创建的机器人\n- 给机器人发送```!help```，查看机器人支持的功能\n- 按照提示使用机器人\n- 如果是自建llmapi server，则配置llmapi_host为你的llmapi server地址，否则默认使用```https://api.llmapi.io```\n- 如果使用默认llmapi server，可以在```https://llmapi.io```上注册账号，获取```api key```，然后在飞书中发送```!llmapi_key your_api_key```\n- 使用```!show```命令查看当前配置，这在出错时可以帮助你排查问题\n- 配置完成后，给机器人发消息，机器人会自动回复\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"imgs/config.png\"\u003e\n  \u003cimg src=\"imgs/test.png\"\u003e\n\u003c/p\u003e\n\n## 反馈(Feedback)\n\n请在issue中反馈问题\n\n## 致谢(Acknowledgements)\n- [ChatGPT](https://chat.openai.com/)\n- [Copilot](https://copilot.github.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllmapi-io%2Ffeishu-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fllmapi-io%2Ffeishu-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllmapi-io%2Ffeishu-chatbot/lists"}