Skip to content

CUHKfreshman/leetcode_bot

Repository files navigation

LeetCode LLM Bot

Introduction

This project is an illustration of how LLMs can be integrated into applications in a robust & novel manner. Its main purpose is to serve as a bot publishing LeetCode Daily Challenges / query random or specific problems / casual chatting.

Structure

This project consists of two main components:

  1. A Node.js application for LeetCode queries (run as normal node applications in root folder)
  2. A Python bot application for QQ (check README in pybot folder)

Features

  1. Generate LeetCode Problem PNG with EN/CN Language support;
  2. Trigger tasks by natural language; Auto-switch mini/heavy LLM models for different tasks (roleplay/problem solving).

Note

Currenty bot relies on Nonebot QQ adapter to function properly. Modify code to migrate to your designated platform.


LeetCode LLM 机器人

简介

本项目展示了如何以一种高容错而新颖的方式将大语言模型(LLM)集成到应用程序中。其主要目的是作为一个发布 LeetCode 每日挑战、查询随机或特定问题以及进行日常聊天的机器人。

结构

本项目由两个主要组件构成:

  1. 用于 LeetCode 查询的 Node.js 应用程序(在根文件夹中作为普通 node 应用程序运行)
  2. 用于 QQ 的 Python 机器人应用程序(查看 pybot 文件夹中的 README)

功能

  1. 生成支持中英双语的 LeetCode 题目 PNG 图片;
  2. 通过自然语言触发任务; 根据不同任务(角色扮演/问题解决)自动切换迷你/重量级 LLM 模型。

注意

目前机器人依赖 Nonebot QQ 适配器才能正常运行。如需迁移到您指定的平台,请修改相关代码。

About

Bot for everyday Leetcode problems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published