This commit is contained in:
2025-11-18 01:30:57 +08:00
parent 388705b646
commit 6d32fedfb0
10 changed files with 126 additions and 51 deletions

View File

@@ -11,7 +11,10 @@ app
path: 'ai',
key: 'chat',
description: '与 AI 进行对话, 调用 GPT 的AI 服务,生成结果,并返回。',
middleware: ['auth'],
middleware: ['admin-auth'],
metadata: {
admin: true,
}
})
.define(async (ctx) => {
const { messages = [], username, group, question, chatOpts = {} } = ctx.query;