mirror of
https://github.com/justlovemaki/AIClient-2-API.git
synced 2026-04-25 09:25:59 +03:00
[PR #188] [MERGED] feat(api-potluck): 添加 API 大锅饭插件功能(彩蛋) #288
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AIClient-2-API-justlovemaki#288
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/justlovemaki/AIClient-2-API/pull/188
Author: @leonaii
Created: 1/8/2026
Status: ✅ Merged
Merged: 1/8/2026
Merged by: @justlovemaki
Base:
main← Head:main📝 Commits (1)
8dd905cfeat(api-potluck): 添加 API 大锅饭插件功能(彩蛋)📊 Changes
8 files changed (+1068 additions, -4 deletions)
View changed files
📝
.gitignore(+2 -1)➕
src/api-potluck/api-routes.js(+277 -0)➕
src/api-potluck/index.js(+33 -0)➕
src/api-potluck/key-manager.js(+297 -0)➕
src/api-potluck/middleware.js(+152 -0)📝
src/common.js(+9 -0)📝
src/request-handler.js(+22 -3)➕
static/potluck.html(+276 -0)📄 Description
功能描述
添加 "API 大锅饭" 功能模块,支持生成带配额限制的 API Key,方便分发给他人使用。
主要特性
maki_前缀的 API Key/potluck.html文件变更
新增文件(无侵入):
src/api-potluck/- 后端模块static/potluck.html- 管理页面configs/api-potluck-keys.json- 数据存储修改文件(最小侵入,已用注释标记):
src/request-handler.js- 添加路由和认证中间件src/common.js- 添加使用计数所有修改点均用
// ============== API 大锅饭插件 ==============标记,便于合并。🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.