feat(next-search): Added AI summary functionality #3221 (#9402)

### What problem does this PR solve?

feat(next-search): Added AI summary functionality #3221

- Added the LlmSettingFieldItems component for AI summary settings
- Updated the SearchSetting component to integrate AI summary
functionality
- Added the updateSearch hook and related service methods
- Modified the ISearchAppDetailProps interface to add the llm_setting
field

### Type of change
- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
chanx
2025-08-12 12:27:00 +08:00
committed by GitHub
parent da68f541b6
commit 735570486f
7 changed files with 490 additions and 152 deletions

View File

@ -2,7 +2,13 @@ import api from '@/utils/api';
import registerServer from '@/utils/register-server';
import request from '@/utils/request';
const { createSearch, getSearchList, deleteSearch, getSearchDetail } = api;
const {
createSearch,
getSearchList,
deleteSearch,
getSearchDetail,
updateSearchSetting,
} = api;
const methods = {
createSearch: {
url: createSearch,
@ -17,6 +23,10 @@ const methods = {
url: getSearchDetail,
method: 'get',
},
updateSearchSetting: {
url: updateSearchSetting,
method: 'post',
},
} as const;
const searchService = registerServer<keyof typeof methods>(methods, request);