Refa: Searches /search API to RESTFul (#13770)

### What problem does this PR solve?

Searches /search API to RESTFul

### Type of change

- [x] Documentation Update
- [x] Refactoring

Co-authored-by: Jin Hai <haijin.chn@gmail.com>
Co-authored-by: Yingfeng <yingfeng.zhang@gmail.com>
This commit is contained in:
Yongteng Lei
2026-03-26 01:07:41 +08:00
committed by GitHub
parent ea1430bec5
commit d19ca71b43
10 changed files with 494 additions and 218 deletions

View File

@ -379,7 +379,7 @@ def _select_first_dataset_and_save(
return isinstance(kb_ids, list) and len(kb_ids) > 0
response_url_pattern = (
"/dialog/set" if save_testid == "chat-settings-save" else "/search/update"
"/dialog/set" if save_testid == "chat-settings-save" else "/api/v1/searches/"
)
last_payload = {}
last_combobox_text = ""