LarkGPT is a bot application running OpenAI's text completion engine and image creation engine for Lark (Feishu).
✅ Private and Group Chat Supported
✅ Private Session Context for Each User
✅ Image Creation Supported
✅ Bot Initialization Command Supported
- Clone the project and install dependencies.
git clone https://github.com/yiheyang/larkgpt.git
yarn # or `npm install`
- Configure your LarkGPT.
cp .env.example .env
# Edit .env
- Start your LarkGPT and check your robot is running on the port (default: 3000).
yarn start # or `npm start`
- Configure "Request URL" with
http(s)://domain:port
and add "im.message.receive_v1" event in "Event Subscription" - "Lark Developer App Panel". - Go to "Permissions & Scopes" and add all permissions that "im.message.receive_v1" requires and "Read and upload images or other files" permission.
/reset # Reset user's session context
/img <prompt> # Generate an image with the given prompt
This project is under the protection of MIT license.