Skip to content

yiheyang/larkgpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LarkGPT 🤖️

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

Quick Start

  1. Clone the project and install dependencies.
git clone https://github.com/yiheyang/larkgpt.git
yarn # or `npm install`
  1. Configure your LarkGPT.
cp .env.example .env

# Edit .env
  1. Start your LarkGPT and check your robot is running on the port (default: 3000).
yarn start # or `npm start`
  1. Configure "Request URL" with http(s)://domain:port and add "Message received [v2.0] - im.message.receive_v1" event in "Event Subscription" - "Lark Developer App Panel".
  2. Go to "Permissions & Scopes" and add all permissions that "im.message.receive_v1" requires and the following permissions.
  • im:message
  • im:message:send_as_bot
  • im:resource
  1. Turn on "Features/Bot" ability.

Robot Command

/reset # Reset user's session context
/img <prompt> # Generate an image with the given prompt

LICENCE

This project is under the protection of MIT license.

About

LarkGPT is a bot application running OpenAI's text completion engine and image generation engine for Lark (Feishu).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published