Feat: Allow chat to use meta data #3221 (#9393)

### What problem does this PR solve?

Feat:  Allow chat to use meta data #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-08-12 10:15:10 +08:00
committed by GitHub
parent 9433f64fe2
commit 76118000c1
13 changed files with 240 additions and 31 deletions

View File

@ -37,6 +37,7 @@ const {
upload_and_parse,
listTagByKnowledgeIds,
setMeta,
getMeta,
} = api;
const methods = {
@ -159,6 +160,10 @@ const methods = {
url: api.get_dataset_filter,
method: 'post',
},
getMeta: {
url: getMeta,
method: 'get',
},
};
const kbService = registerServer<keyof typeof methods>(methods, request);