mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Pass indexed filenames in API response for client validation
This commit is contained in:
parent
5f9ac5a630
commit
43423432ce
1 changed files with 2 additions and 1 deletions
|
@ -148,7 +148,8 @@ async def update(
|
|||
|
||||
logger.info(f"📪 Content index updated via API call by {client} client")
|
||||
|
||||
return Response(content="OK", status_code=200)
|
||||
indexed_filenames = ",".join(file for ctype in index_files for file in index_files[ctype])
|
||||
return Response(content=indexed_filenames, status_code=200)
|
||||
|
||||
|
||||
def configure_search(search_models: SearchModels, search_config: Optional[SearchConfig]) -> Optional[SearchModels]:
|
||||
|
|
Loading…
Add table
Reference in a new issue