You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
924 B
15 lines
924 B
'use strict';
|
|
|
|
const fastgpt = require('../controllers/fastgpt');
|
|
|
|
module.exports = function (app, router, opts) {
|
|
const { middlewares: { auth } } = app
|
|
|
|
router.get('/fastgpt/token', fastgpt.token, { content: '获取 fastgpt Token', visible: true });
|
|
router.get('/fastgpt/config', fastgpt.getConfig, { content: '获取 fastgpt config', visible: true });
|
|
router.get('/fastgpt/datasets', fastgpt.listDatasets, { content: '获取知识库列表', visible: true });
|
|
router.post('/fastgpt/upload', fastgpt.uploadToDataset, { content: '上传文件到知识库', visible: true });
|
|
router.post('/fastgpt/chat', fastgpt.chat, { content: 'chat', visible: true });
|
|
router.post('/fastgpt/solution-chat', fastgpt.solutionChat, { content: '行业方案对话', visible: true });
|
|
router.post('/fastgpt/solution-quote', fastgpt.solutionQuoteData, { content: '行业方案引用详情', visible: true });
|
|
};
|
|
|