第58批功能1+2: 信誉积分管理系统 + AI聊天介入
信誉积分管理系统(CreditManager): - /credits 上报好人好事/举报,每人初始化100积分 - 管理员审批后加分/扣分,低于阈值触发行为限制(可配置规则) - PHP端可提交线索,admin审批接口 - GUI: 待审批/历史记录/限制规则 - DB: credit_records + credit_rules 表 + users.credit_score列 AI聊天介入(AIChatManager): - 兼容openai协议,读models.json/供应商.json/提示词.txt配置 - @//模型名/前缀触发直接提问,私聊回复 - 空闲1-10分钟自动抓聊天互动,广播回复 - 黑名单拦截不浪费token - 对话留档issue.json,HTTP异步请求不阻塞主线程 - 已解除.gitignore对openai资源的屏蔽
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"openai协议": "内置供应商",
|
||||
"添加方法": [
|
||||
"键值对格式,键是供应商名字,值是请求地址",
|
||||
"如果供应商有区分按量计费、token-plan则用一堆花括号即可。可参考mimo的写法",
|
||||
"如果要备注,就用花括号展开,比如向Agnes、opencode一样",
|
||||
"额外说明:本文件默认会从插件内置的服务器定期拉取更新。"
|
||||
],
|
||||
"国产": {
|
||||
"mimo": {
|
||||
"按量计费": "https://api.xiaomimimo.com/v1",
|
||||
"token-plan": "https://token-plan-cn.xiaomimimo.com/v1",
|
||||
"批量推理": "https://batch-api-cn.xiaomimimo.com/v1"
|
||||
},
|
||||
"deepseek": "https://api.deepseek.com",
|
||||
"kimi": "https://api.moonshot.cn/v1",
|
||||
"智谱GLM": "https://open.bigmodel.cn/api/paas/v4",
|
||||
"通义千问": "https://dashscope.aliyuncs.com/compatible-mode/v1",
|
||||
"百度AIStudio": "https://aistudio.baidu.com/llm/lmapi/v3",
|
||||
"MiniMax": "https://api.minimax.cn/v1",
|
||||
"阶跃星辰": {
|
||||
"标准": "https://api.stepfun.com/v1",
|
||||
"step-plan": "https://api.stepfun.com/step_plan/v1"
|
||||
},
|
||||
"零一万物": "https://api.lingyiwanwu.com/v1",
|
||||
"百川": "https://api.baichuan-ai.com/v1",
|
||||
"美团": "https://api.longcat.chat/openai",
|
||||
"抖音云(豆包/火山)": "https://ark.cn-beijing.volces.com/api/v3",
|
||||
"讯飞": {
|
||||
"讯飞星火": "https://spark-api-open.xf-yun.com/v1",
|
||||
"讯飞星辰MaaS": {
|
||||
"标准": "https://maas-api.cn-huabei-1.xf-yun.com/v2",
|
||||
"Coding Plan": "https://maas-coding-api.cn-huabei-1.xf-yun.com/v2",
|
||||
"Token Plan": "https://maas-token-api.cn-huabei-1.xf-yun.com/v2"
|
||||
}
|
||||
},
|
||||
"腾讯云": {
|
||||
"Token Plan": "https://api.lkeap.cloud.tencent.com/plan/v3",
|
||||
"Coding Plan": "https://api.lkeap.cloud.tencent.com/coding/v3",
|
||||
"TokenHub(广州)": "https://tokenhub.tencentmaas.com",
|
||||
"TokenHub(新加坡)": "https://tokenhub-intl.tencentmaas.com"
|
||||
},
|
||||
"硅基流动": "https://api.siliconflow.cn/v1"
|
||||
},
|
||||
"非国产": {
|
||||
"OpenAI": "https://api.openai.com/v1",
|
||||
"Claude(Anthropic)": "https://api.anthropic.com/v1/",
|
||||
"推特(xAI Grok)": "https://api.x.ai/v1",
|
||||
"Gemini": "https://generativelanguage.googleapis.com/v1beta/openai/",
|
||||
"英伟达": "https://integrate.api.nvidia.com/v1",
|
||||
"agnes": {
|
||||
"国际版": "https://apihub.agnes-ai.com/v1",
|
||||
"中国版": "https://apihub.agnes-ai.cn/v1",
|
||||
"说明": "中国版和国际版互通key,但账号、token-plan不互通"
|
||||
},
|
||||
"opencode": {
|
||||
"zen": "https://opencode.ai/zen/v1",
|
||||
"go": "https://opencode.ai/zen/go/v1",
|
||||
"说明": "opencode zen可以通过9router或其它工具反代opencode cli终端免费使用。但不推荐,额度特别低。作者实测:反代出来跑了50万~100万左右就429限流。"
|
||||
},
|
||||
"OpenRouter": "https://openrouter.ai/api/v1"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user